
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Helm · 这是程序员吗</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xishengcai">
        
        
    
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-terminal/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-versions-select/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="readme.html" />
    
    
    <link rel="prev" href="./" />
    

    
    <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    <script src="../../../gitbook/gitbook-plugin-graph/d3.min.js"></script>
    <script src="../../../gitbook/gitbook-plugin-graph/function-plot.js"></script>    

    
        <link rel="shortcut icon" href='../../../favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../../favicon.ico' type="image/x-icon">
    
    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"xishengcai/xisheng.blog","types":["star"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://xisheng.vip" target="_blank" class="custom-link">Home</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">Blog</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                        <b>1.1.</b>
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../algorithm/">
            
                <a href="../../algorithm/">
            
                    
                        <b>1.2.</b>
                    
                    Algorithm
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../algorithm/heap.html">
            
                <a href="../../algorithm/heap.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Heap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../algorithm/readme.html">
            
                <a href="../../algorithm/readme.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../angular/">
            
                <a href="../../angular/">
            
                    
                        <b>1.3.</b>
                    
                    Angular
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../angular/1-start.html">
            
                <a href="../../angular/1-start.html">
            
                    
                        <b>1.3.1.</b>
                    
                    Start
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../angular/2-component.html">
            
                <a href="../../angular/2-component.html">
            
                    
                        <b>1.3.2.</b>
                    
                    Component
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../angular/3-form.html">
            
                <a href="../../angular/3-form.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Form
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../../angular/readme.html">
            
                <a href="../../angular/readme.html">
            
                    
                        <b>1.3.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../database/">
            
                <a href="../../database/">
            
                    
                        <b>1.4.</b>
                    
                    Database
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../database/mongodb.html">
            
                <a href="../../database/mongodb.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Mongodb
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../database/readme.html">
            
                <a href="../../database/readme.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../docker/">
            
                <a href="../../docker/">
            
                    
                        <b>1.5.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../docker/CentOS.html">
            
                <a href="../../docker/CentOS.html">
            
                    
                        <b>1.5.1.</b>
                    
                    CentOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../docker/install.html">
            
                <a href="../../docker/install.html">
            
                    
                        <b>1.5.2.</b>
                    
                    Install
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../docker/readme.html">
            
                <a href="../../docker/readme.html">
            
                    
                        <b>1.5.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../../docker/官方shell.html">
            
                <a href="../../docker/官方shell.html">
            
                    
                        <b>1.5.4.</b>
                    
                    官方Shell
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../golang/">
            
                <a href="../../golang/">
            
                    
                        <b>1.6.</b>
                    
                    Golang
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../golang/aop.html">
            
                <a href="../../golang/aop.html">
            
                    
                        <b>1.6.1.</b>
                    
                    Aop
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../golang/base/">
            
                <a href="../../golang/base/">
            
                    
                        <b>1.6.2.</b>
                    
                    Base
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="../../golang/base/copy.html">
            
                <a href="../../golang/base/copy.html">
            
                    
                        <b>1.6.2.1.</b>
                    
                    Copy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="../../golang/base/new_and_make.html">
            
                <a href="../../golang/base/new_and_make.html">
            
                    
                        <b>1.6.2.2.</b>
                    
                    New And Make
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.3" data-path="../../golang/base/readme.html">
            
                <a href="../../golang/base/readme.html">
            
                    
                        <b>1.6.2.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4" data-path="../../golang/base/reflect.html">
            
                <a href="../../golang/base/reflect.html">
            
                    
                        <b>1.6.2.4.</b>
                    
                    Reflect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.5" data-path="../../golang/base/string.html">
            
                <a href="../../golang/base/string.html">
            
                    
                        <b>1.6.2.5.</b>
                    
                    String
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.6" data-path="../../golang/base/tag.html">
            
                <a href="../../golang/base/tag.html">
            
                    
                        <b>1.6.2.6.</b>
                    
                    Tag
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../golang/clouser.html">
            
                <a href="../../golang/clouser.html">
            
                    
                        <b>1.6.3.</b>
                    
                    Clouser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../golang/err 优雅处理.html">
            
                <a href="../../golang/err 优雅处理.html">
            
                    
                        <b>1.6.4.</b>
                    
                    Err 优雅处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../golang/go module 2.html">
            
                <a href="../../golang/go module 2.html">
            
                    
                        <b>1.6.5.</b>
                    
                    Go Module 2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../../golang/go_mod.html">
            
                <a href="../../golang/go_mod.html">
            
                    
                        <b>1.6.6.</b>
                    
                    Go Mod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../../golang/gocraftwork.html">
            
                <a href="../../golang/gocraftwork.html">
            
                    
                        <b>1.6.7.</b>
                    
                    Gocraftwork
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../../golang/oauth.html">
            
                <a href="../../golang/oauth.html">
            
                    
                        <b>1.6.8.</b>
                    
                    Oauth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../../golang/readme.html">
            
                <a href="../../golang/readme.html">
            
                    
                        <b>1.6.9.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../../golang/swagger.html">
            
                <a href="../../golang/swagger.html">
            
                    
                        <b>1.6.10.</b>
                    
                    Swagger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../../golang/tls.html">
            
                <a href="../../golang/tls.html">
            
                    
                        <b>1.6.11.</b>
                    
                    Tls
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" >
            
                <span>
            
                    
                        <b>1.6.12.</b>
                    
                    代码走读
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.12.1" data-path="../../golang/代码走读/2020.5.26.html">
            
                <a href="../../golang/代码走读/2020.5.26.html">
            
                    
                        <b>1.6.12.1.</b>
                    
                    2020.5.26
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.13" data-path="../../golang/任务队列/">
            
                <a href="../../golang/任务队列/">
            
                    
                        <b>1.6.13.</b>
                    
                    任务队列
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.13.1" data-path="../../golang/任务队列/gocraft-worker.html">
            
                <a href="../../golang/任务队列/gocraft-worker.html">
            
                    
                        <b>1.6.13.1.</b>
                    
                    Gocraft Worker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.13.2" data-path="../../golang/任务队列/readme.html">
            
                <a href="../../golang/任务队列/readme.html">
            
                    
                        <b>1.6.13.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.14" data-path="../../golang/参数校验.html">
            
                <a href="../../golang/参数校验.html">
            
                    
                        <b>1.6.14.</b>
                    
                    参数校验
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../istio/">
            
                <a href="../../istio/">
            
                    
                        <b>1.7.</b>
                    
                    Istio
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../istio/readme.html">
            
                <a href="../../istio/readme.html">
            
                    
                        <b>1.7.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../istio/virtualservice.html">
            
                <a href="../../istio/virtualservice.html">
            
                    
                        <b>1.7.2.</b>
                    
                    Virtualservice
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                        <b>1.8.</b>
                    
                    Java
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../java/jvm.html">
            
                <a href="../../java/jvm.html">
            
                    
                        <b>1.8.1.</b>
                    
                    Jvm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../java/typescript.html">
            
                <a href="../../java/typescript.html">
            
                    
                        <b>1.8.2.</b>
                    
                    Typescript
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.9.</b>
                    
                    Kubernetes
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../APIService.html">
            
                <a href="../APIService.html">
            
                    
                        <b>1.9.1.</b>
                    
                    APIService
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../CAK.html">
            
                <a href="../CAK.html">
            
                    
                        <b>1.9.2.</b>
                    
                    CAK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../Deployment 的实现原理.html">
            
                <a href="../Deployment 的实现原理.html">
            
                    
                        <b>1.9.3.</b>
                    
                    Deployment 的实现原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../K8s源码/">
            
                <a href="../K8s源码/">
            
                    
                        <b>1.9.4.</b>
                    
                    K8s源码
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.4.1" data-path="../K8s源码/calico 源码分析.html">
            
                <a href="../K8s源码/calico 源码分析.html">
            
                    
                        <b>1.9.4.1.</b>
                    
                    Calico 源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.2" data-path="../K8s源码/garbage collector controller 源码分析.html">
            
                <a href="../K8s源码/garbage collector controller 源码分析.html">
            
                    
                        <b>1.9.4.2.</b>
                    
                    Garbage Collector Controller 源码分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.3" data-path="../K8s源码/job.html">
            
                <a href="../K8s源码/job.html">
            
                    
                        <b>1.9.4.3.</b>
                    
                    Job
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.4" data-path="../K8s源码/kube-proxy-iptables.html">
            
                <a href="../K8s源码/kube-proxy-iptables.html">
            
                    
                        <b>1.9.4.4.</b>
                    
                    Kube Proxy Iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.5" data-path="../K8s源码/kube-proxy-ipvs.html">
            
                <a href="../K8s源码/kube-proxy-ipvs.html">
            
                    
                        <b>1.9.4.5.</b>
                    
                    Kube Proxy Ipvs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.6" data-path="../K8s源码/kube-proxy.html">
            
                <a href="../K8s源码/kube-proxy.html">
            
                    
                        <b>1.9.4.6.</b>
                    
                    Kube Proxy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.7" data-path="../K8s源码/kubectl-exec.html">
            
                <a href="../K8s源码/kubectl-exec.html">
            
                    
                        <b>1.9.4.7.</b>
                    
                    Kubectl Exec
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.8" data-path="../K8s源码/kubectl源码阅读1.html">
            
                <a href="../K8s源码/kubectl源码阅读1.html">
            
                    
                        <b>1.9.4.8.</b>
                    
                    Kubectl源码阅读1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.9" data-path="../K8s源码/kubectl源码阅读2.html">
            
                <a href="../K8s源码/kubectl源码阅读2.html">
            
                    
                        <b>1.9.4.9.</b>
                    
                    Kubectl源码阅读2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.10" data-path="../K8s源码/readme.html">
            
                <a href="../K8s源码/readme.html">
            
                    
                        <b>1.9.4.10.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.11" data-path="../K8s源码/schedule.html">
            
                <a href="../K8s源码/schedule.html">
            
                    
                        <b>1.9.4.11.</b>
                    
                    Schedule
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.12" data-path="../K8s源码/scheme.html">
            
                <a href="../K8s源码/scheme.html">
            
                    
                        <b>1.9.4.12.</b>
                    
                    Scheme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4.13" data-path="../K8s源码/调度队列.html">
            
                <a href="../K8s源码/调度队列.html">
            
                    
                        <b>1.9.4.13.</b>
                    
                    调度队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../Karmada.html">
            
                <a href="../Karmada.html">
            
                    
                        <b>1.9.5.</b>
                    
                    Karmada
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.6" data-path="../Pixie.html">
            
                <a href="../Pixie.html">
            
                    
                        <b>1.9.6.</b>
                    
                    Pixie
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.7" data-path="../admission access.html">
            
                <a href="../admission access.html">
            
                    
                        <b>1.9.7.</b>
                    
                    Admission Access
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.8" data-path="../ccm.html">
            
                <a href="../ccm.html">
            
                    
                        <b>1.9.8.</b>
                    
                    Ccm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.9" data-path="../client-go.html">
            
                <a href="../client-go.html">
            
                    
                        <b>1.9.9.</b>
                    
                    Client Go
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.10" data-path="../command.html">
            
                <a href="../command.html">
            
                    
                        <b>1.9.10.</b>
                    
                    Command
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.11" data-path="../controller.html">
            
                <a href="../controller.html">
            
                    
                        <b>1.9.11.</b>
                    
                    Controller
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.12" data-path="../copy docker config.html">
            
                <a href="../copy docker config.html">
            
                    
                        <b>1.9.12.</b>
                    
                    Copy Docker Config
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.13" data-path="../etcd-operation.html">
            
                <a href="../etcd-operation.html">
            
                    
                        <b>1.9.13.</b>
                    
                    Etcd Operation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.14" data-path="../gc.html">
            
                <a href="../gc.html">
            
                    
                        <b>1.9.14.</b>
                    
                    Gc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.15" data-path="../helm chart.html">
            
                <a href="../helm chart.html">
            
                    
                        <b>1.9.15.</b>
                    
                    Helm Chart
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.16" data-path="../helm.html">
            
                <a href="../helm.html">
            
                    
                        <b>1.9.16.</b>
                    
                    Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17" >
            
                <span>
            
                    
                        <b>1.9.17.</b>
                    
                    Helm
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.17.1" data-path="../helm/charts.html">
            
                <a href="../helm/charts.html">
            
                    
                        <b>1.9.17.1.</b>
                    
                    Charts
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.2" data-path="../helm/helm 钩子函数.html">
            
                <a href="../helm/helm 钩子函数.html">
            
                    
                        <b>1.9.17.2.</b>
                    
                    Helm 钩子函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.3" data-path="../helm/helm-operator.html">
            
                <a href="../helm/helm-operator.html">
            
                    
                        <b>1.9.17.3.</b>
                    
                    Helm Operator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.4" data-path="../helm/文档查询.html">
            
                <a href="../helm/文档查询.html">
            
                    
                        <b>1.9.17.4.</b>
                    
                    文档查询
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.17.5" data-path="../helm/语法.html">
            
                <a href="../helm/语法.html">
            
                    
                        <b>1.9.17.5.</b>
                    
                    语法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.18" data-path="../install.html">
            
                <a href="../install.html">
            
                    
                        <b>1.9.18.</b>
                    
                    Install
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.19" data-path="../istio-inject.html">
            
                <a href="../istio-inject.html">
            
                    
                        <b>1.9.19.</b>
                    
                    Istio Inject
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.20" >
            
                <span>
            
                    
                        <b>1.9.20.</b>
                    
                    KubeEdge
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.21" data-path="../kuber-apiserver-flag.html">
            
                <a href="../kuber-apiserver-flag.html">
            
                    
                        <b>1.9.21.</b>
                    
                    Kuber Apiserver Flag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.22" data-path="../kubernetes-client.html">
            
                <a href="../kubernetes-client.html">
            
                    
                        <b>1.9.22.</b>
                    
                    Kubernetes Client
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.23" data-path="../kubernetes灾备.html">
            
                <a href="../kubernetes灾备.html">
            
                    
                        <b>1.9.23.</b>
                    
                    Kubernetes灾备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.24" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.9.24.</b>
                    
                    Kubesphere
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.9.24.1" data-path="helm.html">
            
                <a href="helm.html">
            
                    
                        <b>1.9.24.1.</b>
                    
                    Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.24.2" data-path="readme.html">
            
                <a href="readme.html">
            
                    
                        <b>1.9.24.2.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.25" data-path="../kubevela/">
            
                <a href="../kubevela/">
            
                    
                        <b>1.9.25.</b>
                    
                    Kubevela
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.25.1" data-path="../kubevela/KubeVela 功能.html">
            
                <a href="../kubevela/KubeVela 功能.html">
            
                    
                        <b>1.9.25.1.</b>
                    
                    KubeVela 功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.2" data-path="../kubevela/cue.html">
            
                <a href="../kubevela/cue.html">
            
                    
                        <b>1.9.25.2.</b>
                    
                    Cue
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.3" data-path="../kubevela/oam.html">
            
                <a href="../kubevela/oam.html">
            
                    
                        <b>1.9.25.3.</b>
                    
                    Oam
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.4" data-path="../kubevela/readme.html">
            
                <a href="../kubevela/readme.html">
            
                    
                        <b>1.9.25.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.5" data-path="../kubevela/rollout design.html">
            
                <a href="../kubevela/rollout design.html">
            
                    
                        <b>1.9.25.5.</b>
                    
                    Rollout Design
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.6" data-path="../kubevela/vela run.html">
            
                <a href="../kubevela/vela run.html">
            
                    
                        <b>1.9.25.6.</b>
                    
                    Vela Run
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.7" data-path="../kubevela/vela up.html">
            
                <a href="../kubevela/vela up.html">
            
                    
                        <b>1.9.25.7.</b>
                    
                    Vela Up
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.8" data-path="../kubevela/vela-cluster.html">
            
                <a href="../kubevela/vela-cluster.html">
            
                    
                        <b>1.9.25.8.</b>
                    
                    Vela Cluster
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.9" data-path="../kubevela/vela-helm.html">
            
                <a href="../kubevela/vela-helm.html">
            
                    
                        <b>1.9.25.9.</b>
                    
                    Vela Helm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.25.10" data-path="../kubevela/vela-pk-oam.html">
            
                <a href="../kubevela/vela-pk-oam.html">
            
                    
                        <b>1.9.25.10.</b>
                    
                    Vela Pk Oam
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.26" data-path="../mk-cert.html">
            
                <a href="../mk-cert.html">
            
                    
                        <b>1.9.26.</b>
                    
                    Mk Cert
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.27" data-path="../open_swagger-ui.html">
            
                <a href="../open_swagger-ui.html">
            
                    
                        <b>1.9.27.</b>
                    
                    Open Swagger Ui
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.28" data-path="../readme.html">
            
                <a href="../readme.html">
            
                    
                        <b>1.9.28.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29" data-path="../task/">
            
                <a href="../task/">
            
                    
                        <b>1.9.29.</b>
                    
                    Task
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.29.1" data-path="../task/HPA.html">
            
                <a href="../task/HPA.html">
            
                    
                        <b>1.9.29.1.</b>
                    
                    HPA
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.2" data-path="../task/kubectl patch.html">
            
                <a href="../task/kubectl patch.html">
            
                    
                        <b>1.9.29.2.</b>
                    
                    Kubectl Patch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.3" data-path="../task/pod 信息注入.html">
            
                <a href="../task/pod 信息注入.html">
            
                    
                        <b>1.9.29.3.</b>
                    
                    Pod 信息注入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.4" data-path="../task/pod 垂直扩缩容.html">
            
                <a href="../task/pod 垂直扩缩容.html">
            
                    
                        <b>1.9.29.4.</b>
                    
                    Pod 垂直扩缩容
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.5" data-path="../task/readme.html">
            
                <a href="../task/readme.html">
            
                    
                        <b>1.9.29.5.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.6" data-path="../task/server-side-apply.html">
            
                <a href="../task/server-side-apply.html">
            
                    
                        <b>1.9.29.6.</b>
                    
                    Server Side Apply
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.7" data-path="../task/准入控制.html">
            
                <a href="../task/准入控制.html">
            
                    
                        <b>1.9.29.7.</b>
                    
                    准入控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.8" data-path="../task/聚合api.html">
            
                <a href="../task/聚合api.html">
            
                    
                        <b>1.9.29.8.</b>
                    
                    聚合Api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.29.9" data-path="../task/资源预留配置.html">
            
                <a href="../task/资源预留配置.html">
            
                    
                        <b>1.9.29.9.</b>
                    
                    资源预留配置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.30" data-path="../webhook.html">
            
                <a href="../webhook.html">
            
                    
                        <b>1.9.30.</b>
                    
                    Webhook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.31" data-path="../一致性认证.html">
            
                <a href="../一致性认证.html">
            
                    
                        <b>1.9.31.</b>
                    
                    一致性认证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.32" data-path="../专利名词.html">
            
                <a href="../专利名词.html">
            
                    
                        <b>1.9.32.</b>
                    
                    专利名词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.33" data-path="../删除namespace.html">
            
                <a href="../删除namespace.html">
            
                    
                        <b>1.9.33.</b>
                    
                    删除Namespace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.34" data-path="../简化多集群.html">
            
                <a href="../简化多集群.html">
            
                    
                        <b>1.9.34.</b>
                    
                    简化多集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35" data-path="../网络插件/">
            
                <a href="../网络插件/">
            
                    
                        <b>1.9.35.</b>
                    
                    网络插件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.35.1" data-path="../网络插件/calico.html">
            
                <a href="../网络插件/calico.html">
            
                    
                        <b>1.9.35.1.</b>
                    
                    Calico
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.2" data-path="../网络插件/cilium.html">
            
                <a href="../网络插件/cilium.html">
            
                    
                        <b>1.9.35.2.</b>
                    
                    Cilium
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.3" data-path="../网络插件/ebpf.html">
            
                <a href="../网络插件/ebpf.html">
            
                    
                        <b>1.9.35.3.</b>
                    
                    Ebpf
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.35.4" data-path="../网络插件/readme.html">
            
                <a href="../网络插件/readme.html">
            
                    
                        <b>1.9.35.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.36" data-path="../镜像/">
            
                <a href="../镜像/">
            
                    
                        <b>1.9.36.</b>
                    
                    镜像
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.36.1" data-path="../镜像/Containerd Stargz Snapshotter.html">
            
                <a href="../镜像/Containerd Stargz Snapshotter.html">
            
                    
                        <b>1.9.36.1.</b>
                    
                    Containerd Stargz Snapshotter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.2" data-path="../镜像/OCI.html">
            
                <a href="../镜像/OCI.html">
            
                    
                        <b>1.9.36.2.</b>
                    
                    OCI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.3" data-path="../镜像/harbor/">
            
                <a href="../镜像/harbor/">
            
                    
                        <b>1.9.36.3.</b>
                    
                    Harbor
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.36.3.1" data-path="../镜像/harbor/readme.html">
            
                <a href="../镜像/harbor/readme.html">
            
                    
                        <b>1.9.36.3.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.36.4" data-path="../镜像/readme.html">
            
                <a href="../镜像/readme.html">
            
                    
                        <b>1.9.36.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.5" data-path="../镜像/自动构建镜像.html">
            
                <a href="../镜像/自动构建镜像.html">
            
                    
                        <b>1.9.36.5.</b>
                    
                    自动构建镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.6" data-path="../镜像/镜像加速方案.html">
            
                <a href="../镜像/镜像加速方案.html">
            
                    
                        <b>1.9.36.6.</b>
                    
                    镜像加速方案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.36.7" data-path="../镜像/镜像延迟加载技术解析.html">
            
                <a href="../镜像/镜像延迟加载技术解析.html">
            
                    
                        <b>1.9.36.7.</b>
                    
                    镜像延迟加载技术解析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../math/">
            
                <a href="../../math/">
            
                    
                        <b>1.10.</b>
                    
                    Math
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../../math/readme.html">
            
                <a href="../../math/readme.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../../math/泊松分布.html">
            
                <a href="../../math/泊松分布.html">
            
                    
                        <b>1.10.2.</b>
                    
                    泊松分布
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../效率/">
            
                <a href="../../效率/">
            
                    
                        <b>1.11.</b>
                    
                    效率
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../../效率/cat.html">
            
                <a href="../../效率/cat.html">
            
                    
                        <b>1.11.1.</b>
                    
                    Cat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../../效率/docker volume clean.html">
            
                <a href="../../效率/docker volume clean.html">
            
                    
                        <b>1.11.2.</b>
                    
                    Docker Volume Clean
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../../效率/git book.html">
            
                <a href="../../效率/git book.html">
            
                    
                        <b>1.11.3.</b>
                    
                    Git Book
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../../效率/git.html">
            
                <a href="../../效率/git.html">
            
                    
                        <b>1.11.4.</b>
                    
                    Git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../../效率/linux command.html">
            
                <a href="../../效率/linux command.html">
            
                    
                        <b>1.11.5.</b>
                    
                    Linux Command
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../../效率/linux 内核.html">
            
                <a href="../../效率/linux 内核.html">
            
                    
                        <b>1.11.6.</b>
                    
                    Linux 内核
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../../效率/macos path.html">
            
                <a href="../../效率/macos path.html">
            
                    
                        <b>1.11.7.</b>
                    
                    Macos Path
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../../效率/nfs.html">
            
                <a href="../../效率/nfs.html">
            
                    
                        <b>1.11.8.</b>
                    
                    Nfs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../../效率/nginx.html">
            
                <a href="../../效率/nginx.html">
            
                    
                        <b>1.11.9.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../../效率/nginx2.html">
            
                <a href="../../效率/nginx2.html">
            
                    
                        <b>1.11.10.</b>
                    
                    Nginx2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.11" data-path="../../效率/oauth2.html">
            
                <a href="../../效率/oauth2.html">
            
                    
                        <b>1.11.11.</b>
                    
                    Oauth2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.12" data-path="../../效率/ovftool.html">
            
                <a href="../../效率/ovftool.html">
            
                    
                        <b>1.11.12.</b>
                    
                    Ovftool
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.13" data-path="../../效率/readme.html">
            
                <a href="../../效率/readme.html">
            
                    
                        <b>1.11.13.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.14" data-path="../../效率/sed.html">
            
                <a href="../../效率/sed.html">
            
                    
                        <b>1.11.14.</b>
                    
                    Sed
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.15" data-path="../../效率/shell_judge.html">
            
                <a href="../../效率/shell_judge.html">
            
                    
                        <b>1.11.15.</b>
                    
                    Shell Judge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.16" data-path="../../效率/sshpass.html">
            
                <a href="../../效率/sshpass.html">
            
                    
                        <b>1.11.16.</b>
                    
                    Sshpass
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.17" data-path="../../效率/telepresence.html">
            
                <a href="../../效率/telepresence.html">
            
                    
                        <b>1.11.17.</b>
                    
                    Telepresence
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.18" data-path="../../效率/typora.html">
            
                <a href="../../效率/typora.html">
            
                    
                        <b>1.11.18.</b>
                    
                    Typora
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.19" data-path="../../效率/url encode.html">
            
                <a href="../../效率/url encode.html">
            
                    
                        <b>1.11.19.</b>
                    
                    Url Encode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.20" data-path="../../效率/vim.html">
            
                <a href="../../效率/vim.html">
            
                    
                        <b>1.11.20.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.21" data-path="../../效率/yum.html">
            
                <a href="../../效率/yum.html">
            
                    
                        <b>1.11.21.</b>
                    
                    Yum
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.22" data-path="../../效率/内网穿透.html">
            
                <a href="../../效率/内网穿透.html">
            
                    
                        <b>1.11.22.</b>
                    
                    内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.23" data-path="../../效率/科学上网.html">
            
                <a href="../../效率/科学上网.html">
            
                    
                        <b>1.11.23.</b>
                    
                    科学上网
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.24" data-path="../../效率/证书制作.html">
            
                <a href="../../效率/证书制作.html">
            
                    
                        <b>1.11.24.</b>
                    
                    证书制作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <span>
            
                    
                        <b>1.12.</b>
                    
                    杂谈
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../../杂谈/论好文章和烂文章.html">
            
                <a href="../../杂谈/论好文章和烂文章.html">
            
                    
                        <b>1.12.1.</b>
                    
                    论好文章和烂文章
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../../测试/">
            
                <a href="../../测试/">
            
                    
                        <b>1.13.</b>
                    
                    测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../../测试/ginkgo/">
            
                <a href="../../测试/ginkgo/">
            
                    
                        <b>1.13.1.</b>
                    
                    Ginkgo
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1.1" data-path="../../测试/ginkgo/ginkgo.html">
            
                <a href="../../测试/ginkgo/ginkgo.html">
            
                    
                        <b>1.13.1.1.</b>
                    
                    Ginkgo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.1.2" data-path="../../测试/ginkgo/ginkgo_cmd.html">
            
                <a href="../../测试/ginkgo/ginkgo_cmd.html">
            
                    
                        <b>1.13.1.2.</b>
                    
                    Ginkgo Cmd
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.1.3" data-path="../../测试/ginkgo/readme.html">
            
                <a href="../../测试/ginkgo/readme.html">
            
                    
                        <b>1.13.1.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../../测试/golang-test.html">
            
                <a href="../../测试/golang-test.html">
            
                    
                        <b>1.13.2.</b>
                    
                    Golang Test
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../../测试/http测试.html">
            
                <a href="../../测试/http测试.html">
            
                    
                        <b>1.13.3.</b>
                    
                    Http测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../../测试/readme.html">
            
                <a href="../../测试/readme.html">
            
                    
                        <b>1.13.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../../测试/其他功能.html">
            
                <a href="../../测试/其他功能.html">
            
                    
                        <b>1.13.5.</b>
                    
                    其他功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../../测试/单元测试.html">
            
                <a href="../../测试/单元测试.html">
            
                    
                        <b>1.13.6.</b>
                    
                    单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.7" data-path="../../测试/单元测试2.html">
            
                <a href="../../测试/单元测试2.html">
            
                    
                        <b>1.13.7.</b>
                    
                    单元测试2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.8" data-path="../../测试/基准测试.html">
            
                <a href="../../测试/基准测试.html">
            
                    
                        <b>1.13.8.</b>
                    
                    基准测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.9" data-path="../../测试/子测试与子基准测试.html">
            
                <a href="../../测试/子测试与子基准测试.html">
            
                    
                        <b>1.13.9.</b>
                    
                    子测试与子基准测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.10" data-path="../../测试/并行测试.html">
            
                <a href="../../测试/并行测试.html">
            
                    
                        <b>1.13.10.</b>
                    
                    并行测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11" data-path="../../测试/质量检查/">
            
                <a href="../../测试/质量检查/">
            
                    
                        <b>1.13.11.</b>
                    
                    质量检查
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.11.1" data-path="../../测试/质量检查/Sonar.html">
            
                <a href="../../测试/质量检查/Sonar.html">
            
                    
                        <b>1.13.11.1.</b>
                    
                    Sonar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11.2" data-path="../../测试/质量检查/go_lint.html">
            
                <a href="../../测试/质量检查/go_lint.html">
            
                    
                        <b>1.13.11.2.</b>
                    
                    Go Lint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11.3" data-path="../../测试/质量检查/readme.html">
            
                <a href="../../测试/质量检查/readme.html">
            
                    
                        <b>1.13.11.3.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../规范/">
            
                <a href="../../规范/">
            
                    
                        <b>1.14.</b>
                    
                    规范
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../../规范/CodeReviewComments.html">
            
                <a href="../../规范/CodeReviewComments.html">
            
                    
                        <b>1.14.1.</b>
                    
                    CodeReviewComments
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../../规范/git规范.html">
            
                <a href="../../规范/git规范.html">
            
                    
                        <b>1.14.2.</b>
                    
                    Git规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../../规范/golang 代码规范.html">
            
                <a href="../../规范/golang 代码规范.html">
            
                    
                        <b>1.14.3.</b>
                    
                    Golang 代码规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="../../规范/readme.html">
            
                <a href="../../规范/readme.html">
            
                    
                        <b>1.14.4.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="../../规范/代码走读.html">
            
                <a href="../../规范/代码走读.html">
            
                    
                        <b>1.14.5.</b>
                    
                    代码走读
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../../设计模式/">
            
                <a href="../../设计模式/">
            
                    
                        <b>1.15.</b>
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../../设计模式/readme.html">
            
                <a href="../../设计模式/readme.html">
            
                    
                        <b>1.15.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../../设计模式/创建模型/">
            
                <a href="../../设计模式/创建模型/">
            
                    
                        <b>1.15.2.</b>
                    
                    创建模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.2.1" data-path="../../设计模式/创建模型/readme.html">
            
                <a href="../../设计模式/创建模型/readme.html">
            
                    
                        <b>1.15.2.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.2" data-path="../../设计模式/创建模型/创建者模型.html">
            
                <a href="../../设计模式/创建模型/创建者模型.html">
            
                    
                        <b>1.15.2.2.</b>
                    
                    创建者模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.3" data-path="../../设计模式/创建模型/单例模式.html">
            
                <a href="../../设计模式/创建模型/单例模式.html">
            
                    
                        <b>1.15.2.3.</b>
                    
                    单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.4" data-path="../../设计模式/创建模型/原型模式.html">
            
                <a href="../../设计模式/创建模型/原型模式.html">
            
                    
                        <b>1.15.2.4.</b>
                    
                    原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.5" data-path="../../设计模式/创建模型/工厂方法.html">
            
                <a href="../../设计模式/创建模型/工厂方法.html">
            
                    
                        <b>1.15.2.5.</b>
                    
                    工厂方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.6" data-path="../../设计模式/创建模型/抽象工厂.html">
            
                <a href="../../设计模式/创建模型/抽象工厂.html">
            
                    
                        <b>1.15.2.6.</b>
                    
                    抽象工厂
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2.7" data-path="../../设计模式/创建模型/简单工厂.html">
            
                <a href="../../设计模式/创建模型/简单工厂.html">
            
                    
                        <b>1.15.2.7.</b>
                    
                    简单工厂
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../../设计模式/结构型模型/">
            
                <a href="../../设计模式/结构型模型/">
            
                    
                        <b>1.15.3.</b>
                    
                    结构型模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.3.1" data-path="../../设计模式/结构型模型/readme.html">
            
                <a href="../../设计模式/结构型模型/readme.html">
            
                    
                        <b>1.15.3.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.2" data-path="../../设计模式/结构型模型/享元模式.html">
            
                <a href="../../设计模式/结构型模型/享元模式.html">
            
                    
                        <b>1.15.3.2.</b>
                    
                    享元模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.3" data-path="../../设计模式/结构型模型/代理模式.html">
            
                <a href="../../设计模式/结构型模型/代理模式.html">
            
                    
                        <b>1.15.3.3.</b>
                    
                    代理模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.4" data-path="../../设计模式/结构型模型/外观模式.html">
            
                <a href="../../设计模式/结构型模型/外观模式.html">
            
                    
                        <b>1.15.3.4.</b>
                    
                    外观模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.5" data-path="../../设计模式/结构型模型/桥模式.html">
            
                <a href="../../设计模式/结构型模型/桥模式.html">
            
                    
                        <b>1.15.3.5.</b>
                    
                    桥模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.6" data-path="../../设计模式/结构型模型/组合模式.html">
            
                <a href="../../设计模式/结构型模型/组合模式.html">
            
                    
                        <b>1.15.3.6.</b>
                    
                    组合模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.7" data-path="../../设计模式/结构型模型/装饰模式.html">
            
                <a href="../../设计模式/结构型模型/装饰模式.html">
            
                    
                        <b>1.15.3.7.</b>
                    
                    装饰模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3.8" data-path="../../设计模式/结构型模型/适配器模式.html">
            
                <a href="../../设计模式/结构型模型/适配器模式.html">
            
                    
                        <b>1.15.3.8.</b>
                    
                    适配器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../../设计模式/行为型模型/">
            
                <a href="../../设计模式/行为型模型/">
            
                    
                        <b>1.15.4.</b>
                    
                    行为型模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.4.1" data-path="../../设计模式/行为型模型/readme.html">
            
                <a href="../../设计模式/行为型模型/readme.html">
            
                    
                        <b>1.15.4.1.</b>
                    
                    Readme
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.2" data-path="../../设计模式/行为型模型/中介者模式.html">
            
                <a href="../../设计模式/行为型模型/中介者模式.html">
            
                    
                        <b>1.15.4.2.</b>
                    
                    中介者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.3" data-path="../../设计模式/行为型模型/命令模式.html">
            
                <a href="../../设计模式/行为型模型/命令模式.html">
            
                    
                        <b>1.15.4.3.</b>
                    
                    命令模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.4" data-path="../../设计模式/行为型模型/备忘录模式.html">
            
                <a href="../../设计模式/行为型模型/备忘录模式.html">
            
                    
                        <b>1.15.4.4.</b>
                    
                    备忘录模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.5" data-path="../../设计模式/行为型模型/模板方法模式.html">
            
                <a href="../../设计模式/行为型模型/模板方法模式.html">
            
                    
                        <b>1.15.4.5.</b>
                    
                    模板方法模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.6" data-path="../../设计模式/行为型模型/状态模式.html">
            
                <a href="../../设计模式/行为型模型/状态模式.html">
            
                    
                        <b>1.15.4.6.</b>
                    
                    状态模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.7" data-path="../../设计模式/行为型模型/策略模式.html">
            
                <a href="../../设计模式/行为型模型/策略模式.html">
            
                    
                        <b>1.15.4.7.</b>
                    
                    策略模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.8" data-path="../../设计模式/行为型模型/职责链模式.html">
            
                <a href="../../设计模式/行为型模型/职责链模式.html">
            
                    
                        <b>1.15.4.8.</b>
                    
                    职责链模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.9" data-path="../../设计模式/行为型模型/观察者模式.html">
            
                <a href="../../设计模式/行为型模型/观察者模式.html">
            
                    
                        <b>1.15.4.9.</b>
                    
                    观察者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.10" data-path="../../设计模式/行为型模型/解释器模式.html">
            
                <a href="../../设计模式/行为型模型/解释器模式.html">
            
                    
                        <b>1.15.4.10.</b>
                    
                    解释器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.11" data-path="../../设计模式/行为型模型/访问者模式.html">
            
                <a href="../../设计模式/行为型模型/访问者模式.html">
            
                    
                        <b>1.15.4.11.</b>
                    
                    访问者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4.12" data-path="../../设计模式/行为型模型/迭代器模式.html">
            
                <a href="../../设计模式/行为型模型/迭代器模式.html">
            
                    
                        <b>1.15.4.12.</b>
                    
                    迭代器模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >Helm</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#kubesphere-helm-repo-&#x6E90;&#x7801;&#x5206;&#x6790;">kubesphere helm repo &#x6E90;&#x7801;&#x5206;&#x6790;</a></li><ul><li><a href="#&#x80CC;&#x666F;&#x4ECB;&#x7ECD;">&#x80CC;&#x666F;&#x4ECB;&#x7ECD;</a></li><ul><li><a href="#kubesphere-&#x4E2D;&#x7684;helm-&#x4ED3;&#x5E93;&#x529F;&#x80FD;">kubesphere &#x4E2D;&#x7684;helm &#x4ED3;&#x5E93;&#x529F;&#x80FD;</a></li><li><a href="#helm-&#x4ED3;&#x5E93;&#x7B80;&#x4ECB;">helm &#x4ED3;&#x5E93;&#x7B80;&#x4ECB;</a></li></ul><li><a href="#&#x6DFB;&#x52A0;helm-&#x4ED3;&#x5E93;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;">&#x6DFB;&#x52A0;helm &#x4ED3;&#x5E93;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;</a></li><ul><li><a href="#&#x63A5;&#x53E3;&#x5B9E;&#x73B0;&#x5206;&#x6790;">&#x63A5;&#x53E3;&#x5B9E;&#x73B0;&#x5206;&#x6790;</a></li></ul><li><a href="#&#x67E5;&#x8BE2;helm-&#x4ED3;&#x5E93;&#x5E94;&#x7528;&#x6A21;&#x7248;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;">&#x67E5;&#x8BE2;helm &#x4ED3;&#x5E93;&#x5E94;&#x7528;&#x6A21;&#x7248;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;</a></li><ul><li><a href="#&#x63A5;&#x53E3;&#x5B9E;&#x73B0;">&#x63A5;&#x53E3;&#x5B9E;&#x73B0;</a></li></ul><li><a href="#&#x7F13;&#x5B58;&#x66F4;&#x65B0;&#x7684;&#x5B9E;&#x73B0;">&#x7F13;&#x5B58;&#x66F4;&#x65B0;&#x7684;&#x5B9E;&#x73B0;</a></li><li><a href="#helmrepo-&#x534F;&#x8C03;&#x5668;">helmRepo &#x534F;&#x8C03;&#x5668;</a></li><ul><li><a href="#helmrepostatusdata-&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;">HelmRepo.Status.Data &#x52A0;&#x8F7D;&#x6D41;&#x7A0B;</a></li></ul><li><a href="#question">Question:</a></li></ul></ul></div><a href="#kubesphere-helm-repo-&#x6E90;&#x7801;&#x5206;&#x6790;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="kubesphere-helm-repo-&#x6E90;&#x7801;&#x5206;&#x6790;"><a name="kubesphere-helm-repo-&#x6E90;&#x7801;&#x5206;&#x6790;" class="anchor-navigation-ex-anchor" href="#kubesphere-helm-repo-&#x6E90;&#x7801;&#x5206;&#x6790;"><i class="fa fa-link" aria-hidden="true"></i></a>kubesphere helm repo &#x6E90;&#x7801;&#x5206;&#x6790;</h1>
<!--toc-->
<h2 id="&#x80CC;&#x666F;&#x4ECB;&#x7ECD;"><a name="&#x80CC;&#x666F;&#x4ECB;&#x7ECD;" class="anchor-navigation-ex-anchor" href="#&#x80CC;&#x666F;&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x80CC;&#x666F;&#x4ECB;&#x7ECD;</h2>
<h3 id="kubesphere-&#x4E2D;&#x7684;helm-&#x4ED3;&#x5E93;&#x529F;&#x80FD;"><a name="kubesphere-&#x4E2D;&#x7684;helm-&#x4ED3;&#x5E93;&#x529F;&#x80FD;" class="anchor-navigation-ex-anchor" href="#kubesphere-&#x4E2D;&#x7684;helm-&#x4ED3;&#x5E93;&#x529F;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>kubesphere &#x4E2D;&#x7684;helm &#x4ED3;&#x5E93;&#x529F;&#x80FD;</h3>
<ul>
<li><p>kubesphere helm &#x4ED3;&#x5E93;&#x6DFB;&#x52A0;
<img src="https://tva1.sinaimg.cn/large/008i3skNly1grs5bcmzv6j31lf0u0k0h.jpg" alt="image-20210623134118349"></p>
</li>
<li><p>helm repo list
<img src="https://tva1.sinaimg.cn/large/008i3skNly1grs5b08mdoj31s00u0ajs.jpg" alt="image-20210623134053555"></p>
</li>
<li><p>kubesphere helm &#x4ED3;&#x5E93;&#x4E2D;&#x7684;&#x5E94;&#x7528;&#x6A21;&#x7248;&#x67E5;&#x8BE2;</p>
<p><img src="https://tva1.sinaimg.cn/large/008i3skNly1grs5cav76dj61hj0u0h3702.jpg" alt="image-20210623134213510"></p>
</li>
</ul>
<h3 id="helm-&#x4ED3;&#x5E93;&#x7B80;&#x4ECB;"><a name="helm-&#x4ED3;&#x5E93;&#x7B80;&#x4ECB;" class="anchor-navigation-ex-anchor" href="#helm-&#x4ED3;&#x5E93;&#x7B80;&#x4ECB;"><i class="fa fa-link" aria-hidden="true"></i></a>helm &#x4ED3;&#x5E93;&#x7B80;&#x4ECB;</h3>
<p>helm charts&#x662F;&#x5B58;&#x653E;k8s &#x5E94;&#x7528;&#x6A21;&#x7248;&#x7684;&#x4ED3;&#x5E93;&#xFF0C;&#x8BE5;&#x4ED3;&#x5E93;&#x7531;index.yaml &#x6587;&#x4EF6;&#x548C; .tgz&#x6A21;&#x7248;&#x5305;&#x7EC4;&#x6210;</p>
<pre class="language-"><code class="lang-bash"><span class="token punctuation">[</span>root@ningbo stable<span class="token punctuation">]</span><span class="token comment"># ls -al </span>
&#x603B;&#x7528;&#x91CF; <span class="token number">400</span>
drwxr-xr-x. <span class="token number">26</span> root root   <span class="token number">4096</span> <span class="token number">6</span>&#x6708;  <span class="token number">22</span> <span class="token number">17</span>:01 <span class="token builtin class-name">.</span>
drwxr-xr-x.  <span class="token number">4</span> root root     <span class="token number">86</span> <span class="token number">6</span>&#x6708;  <span class="token number">22</span> <span class="token number">16</span>:37 <span class="token punctuation">..</span>
-rw-r--r--.  <span class="token number">1</span> root root  <span class="token number">10114</span> <span class="token number">6</span>&#x6708;  <span class="token number">22</span> <span class="token number">17</span>:12 index.yaml
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">3803</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-cluster-csm-om-agent-0.1.0.tgz
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">4022</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-mcp-cc-alert-service-0.1.0.tgz
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">4340</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-mcp-cc-sms-service-0.1.0.tgz
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">4103</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-mcp-cpm-metrics-exchange-0.1.0.tgz
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">4263</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-mcp-cpm-om-service-0.1.0.tgz
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">4155</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-mcp-csm-om-service-0.1.0.tgz
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">3541</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-mcp-deploy-service-0.1.0.tgz
-rw-r--r--.  <span class="token number">1</span> root root   <span class="token number">5549</span> <span class="token number">6</span>&#x6708;   <span class="token number">8</span> <span class="token number">2020</span> lsh-mcp-iam-apigateway-service-0.1.0.tgz
</code></pre>
<ul>
<li><strong>index.yaml &#x6587;&#x4EF6;</strong></li>
</ul>
<pre class="language-"><code>apiVersion: v1
entries:
  aliyun-ccm:
  - apiVersion: v2
    appVersion: addon
    created: &quot;2021-06-21T08:59:58Z&quot;
    description: A Helm chart for Kubernetes
    digest: 6bda563c86333475255e5edfedc200ae282544e2c6e22b519a59b3c7bdef9a32
    name: aliyun-ccm
    type: application
    urls:
    - charts/aliyun-ccm-0.1.0.tgz
    version: 0.1.0
  aliyun-csi-driver:
  - apiVersion: v2
    appVersion: addon
    created: &quot;2021-06-21T08:59:58Z&quot;
    description: A Helm chart for Kubernetes
    digest: b49f128d7a49401d52173e6f58caedd3fabbe8e2827dc00e6a824ee38860fa51
    name: aliyun-csi-driver
    type: application
    urls:
    - charts/aliyun-csi-driver-0.1.0.tgz
    version: 0.1.0
  application-controller:
  - apiVersion: v1
    appVersion: addon
    created: &quot;2021-06-21T08:59:58Z&quot;
    description: A Helm chart for application Controller
    digest: 546e72ce77f865683ce0ea75f6e0203537a40744f2eb34e36a5bd378f9452bc5
    name: application-controller
    urls:
    - charts/application-controller-0.1.0.tgz
    version: 0.1.0
</code></pre><ul>
<li><strong>tgz &#x89E3;&#x538B;&#x7F29;&#x540E;&#x7684;&#x6587;&#x4EF6;&#x76EE;&#x5F55;</strong></li>
</ul>
<pre class="language-"><code class="lang-bash"><span class="token punctuation">[</span>root@ningbo stable<span class="token punctuation">]</span><span class="token comment"># cd mysql/</span>
<span class="token punctuation">[</span>root@ningbo mysql<span class="token punctuation">]</span><span class="token comment"># ls -al</span>
&#x603B;&#x7528;&#x91CF; <span class="token number">20</span>
drwxr-xr-x.  <span class="token number">3</span> root root   <span class="token number">97</span> <span class="token number">5</span>&#x6708;  <span class="token number">25</span> <span class="token number">2020</span> <span class="token builtin class-name">.</span>
drwxr-xr-x. <span class="token number">26</span> root root <span class="token number">4096</span> <span class="token number">6</span>&#x6708;  <span class="token number">22</span> <span class="token number">17</span>:01 <span class="token punctuation">..</span>
-rwxr-xr-x.  <span class="token number">1</span> root root  <span class="token number">106</span> <span class="token number">5</span>&#x6708;  <span class="token number">25</span> <span class="token number">2020</span> Chart.yaml
-rwxr-xr-x.  <span class="token number">1</span> root root  <span class="token number">364</span> <span class="token number">5</span>&#x6708;  <span class="token number">25</span> <span class="token number">2020</span> .helmignore
-rwxr-xr-x.  <span class="token number">1</span> root root   <span class="token number">76</span> <span class="token number">5</span>&#x6708;  <span class="token number">25</span> <span class="token number">2020</span> index.yaml
drwxr-xr-x.  <span class="token number">3</span> root root  <span class="token number">146</span> <span class="token number">5</span>&#x6708;  <span class="token number">25</span> <span class="token number">2020</span> templates
-rwxr-xr-x.  <span class="token number">1</span> root root <span class="token number">1735</span> <span class="token number">5</span>&#x6708;  <span class="token number">25</span> <span class="token number">2020</span> values.yaml
</code></pre>
<ul>
<li><strong>Chart.yaml</strong></li>
</ul>
<pre class="language-"><code>[root@ningbo mysql]# cat Chart.yaml 
apiVersion: v1
appVersion: &quot;1.0&quot;
description: A Helm chart for Kubernetes
name: mysql
version: 0.1.0
</code></pre><h2 id="&#x6DFB;&#x52A0;helm-&#x4ED3;&#x5E93;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;"><a name="&#x6DFB;&#x52A0;helm-&#x4ED3;&#x5E93;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;" class="anchor-navigation-ex-anchor" href="#&#x6DFB;&#x52A0;helm-&#x4ED3;&#x5E93;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6DFB;&#x52A0;helm &#x4ED3;&#x5E93;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;</h2>
<h3 id="&#x63A5;&#x53E3;&#x5B9E;&#x73B0;&#x5206;&#x6790;"><a name="&#x63A5;&#x53E3;&#x5B9E;&#x73B0;&#x5206;&#x6790;" class="anchor-navigation-ex-anchor" href="#&#x63A5;&#x53E3;&#x5B9E;&#x73B0;&#x5206;&#x6790;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x63A5;&#x53E3;&#x5B9E;&#x73B0;&#x5206;&#x6790;</h3>
<ol>
<li>&#x8DEF;&#x7531;&#x6CE8;&#x518C;</li>
<li>handler&#xFF1A;&#x6821;&#x9A8C;&#x53C2;&#x6570;&#xFF0C; &#x6784;&#x5EFA; models</li>
<li>models &#xFF1A; &#x8C03;&#x7528;createRepo&#x65B9;&#x6CD5;</li>
<li><p>crd client&#xFF1A; &#x8C03;&#x7528;k8s api, &#x521B;&#x5EFA; crd HelmRepo</p>
</li>
<li><p><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/kapis/openpitrix/v1/register.go#L47" target="_blank">&#x8DEF;&#x7531;&#x6CE8;&#x518C;</a></p>
</li>
</ol>
<pre class="language-"><code class="lang-go">    webservice<span class="token punctuation">.</span><span class="token function">Route</span><span class="token punctuation">(</span>webservice<span class="token punctuation">.</span><span class="token function">POST</span><span class="token punctuation">(</span><span class="token string">&quot;/repos&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">To</span><span class="token punctuation">(</span>handler<span class="token punctuation">.</span>CreateRepo<span class="token punctuation">)</span><span class="token punctuation">.</span> <span class="token comment">// &#x8DDF;&#x8FDB;</span>
        <span class="token function">Doc</span><span class="token punctuation">(</span><span class="token string">&quot;Create a global repository, which is used to store package of app&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Metadata</span><span class="token punctuation">(</span>restfulspec<span class="token punctuation">.</span>KeyOpenAPITags<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token builtin">string</span><span class="token punctuation">{</span>constants<span class="token punctuation">.</span>OpenpitrixTag<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Param</span><span class="token punctuation">(</span>webservice<span class="token punctuation">.</span><span class="token function">QueryParameter</span><span class="token punctuation">(</span><span class="token string">&quot;validate&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;Validate repository&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Returns</span><span class="token punctuation">(</span>http<span class="token punctuation">.</span>StatusOK<span class="token punctuation">,</span> api<span class="token punctuation">.</span>StatusOK<span class="token punctuation">,</span> openpitrix<span class="token punctuation">.</span>CreateRepoResponse<span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Reads</span><span class="token punctuation">(</span>openpitrix<span class="token punctuation">.</span>CreateRepoRequest<span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
</code></pre>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/kapis/openpitrix/v1/handler.go#L66:29" target="_blank">&#x6821;&#x9A8C;&#x53C2;&#x6570;&#xFF0C; &#x6784;&#x5EFA; models</a></li>
</ul>
<pre class="language-"><code class="lang-go"><span class="token keyword">func</span> <span class="token punctuation">(</span>h <span class="token operator">*</span>openpitrixHandler<span class="token punctuation">)</span> <span class="token function">CreateRepo</span><span class="token punctuation">(</span>req <span class="token operator">*</span>restful<span class="token punctuation">.</span>Request<span class="token punctuation">,</span> resp <span class="token operator">*</span>restful<span class="token punctuation">.</span>Response<span class="token punctuation">)</span> <span class="token punctuation">{</span>

    createRepoRequest <span class="token operator">:=</span> <span class="token operator">&amp;</span>openpitrix<span class="token punctuation">.</span>CreateRepoRequest<span class="token punctuation">{</span><span class="token punctuation">}</span>
    err <span class="token operator">:=</span> req<span class="token punctuation">.</span><span class="token function">ReadEntity</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">)</span>
    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">V</span><span class="token punctuation">(</span><span class="token number">4</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">Infoln</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span>
        api<span class="token punctuation">.</span><span class="token function">HandleBadRequest</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span>
    <span class="token punctuation">}</span>

    createRepoRequest<span class="token punctuation">.</span>Workspace <span class="token operator">=</span> <span class="token function">new</span><span class="token punctuation">(</span><span class="token builtin">string</span><span class="token punctuation">)</span>
    <span class="token operator">*</span>createRepoRequest<span class="token punctuation">.</span>Workspace <span class="token operator">=</span> req<span class="token punctuation">.</span><span class="token function">PathParameter</span><span class="token punctuation">(</span><span class="token string">&quot;workspace&quot;</span><span class="token punctuation">)</span>

    user<span class="token punctuation">,</span> <span class="token boolean">_</span> <span class="token operator">:=</span> request<span class="token punctuation">.</span><span class="token function">UserFrom</span><span class="token punctuation">(</span>req<span class="token punctuation">.</span>Request<span class="token punctuation">.</span><span class="token function">Context</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    creator <span class="token operator">:=</span> <span class="token string">&quot;&quot;</span>
    <span class="token keyword">if</span> user <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        creator <span class="token operator">=</span> user<span class="token punctuation">.</span><span class="token function">GetName</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
    parsedUrl<span class="token punctuation">,</span> err <span class="token operator">:=</span> url<span class="token punctuation">.</span><span class="token function">Parse</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">.</span>URL<span class="token punctuation">)</span>
    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        api<span class="token punctuation">.</span><span class="token function">HandleBadRequest</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span>
    <span class="token punctuation">}</span>
    userInfo <span class="token operator">:=</span> parsedUrl<span class="token punctuation">.</span>User
    <span class="token comment">// trim credential from url</span>
    parsedUrl<span class="token punctuation">.</span>User <span class="token operator">=</span> <span class="token boolean">nil</span>

    repo <span class="token operator">:=</span> v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">{</span>
        ObjectMeta<span class="token punctuation">:</span> metav1<span class="token punctuation">.</span>ObjectMeta<span class="token punctuation">{</span>
            Name<span class="token punctuation">:</span> idutils<span class="token punctuation">.</span><span class="token function">GetUuid36</span><span class="token punctuation">(</span>v1alpha1<span class="token punctuation">.</span>HelmRepoIdPrefix<span class="token punctuation">)</span><span class="token punctuation">,</span>
            Annotations<span class="token punctuation">:</span> <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token builtin">string</span><span class="token punctuation">{</span>
                constants<span class="token punctuation">.</span>CreatorAnnotationKey<span class="token punctuation">:</span> creator<span class="token punctuation">,</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
            Labels<span class="token punctuation">:</span> <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token builtin">string</span><span class="token punctuation">{</span>
                constants<span class="token punctuation">.</span>WorkspaceLabelKey<span class="token punctuation">:</span> <span class="token operator">*</span>createRepoRequest<span class="token punctuation">.</span>Workspace<span class="token punctuation">,</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        Spec<span class="token punctuation">:</span> v1alpha1<span class="token punctuation">.</span>HelmRepoSpec<span class="token punctuation">{</span>
            Name<span class="token punctuation">:</span>        createRepoRequest<span class="token punctuation">.</span>Name<span class="token punctuation">,</span>
            Url<span class="token punctuation">:</span>         parsedUrl<span class="token punctuation">.</span><span class="token function">String</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
            SyncPeriod<span class="token punctuation">:</span>  <span class="token number">0</span><span class="token punctuation">,</span>
            Description<span class="token punctuation">:</span> stringutils<span class="token punctuation">.</span><span class="token function">ShortenString</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">.</span>Description<span class="token punctuation">,</span> <span class="token number">512</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">if</span> strings<span class="token punctuation">.</span><span class="token function">HasPrefix</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">.</span>URL<span class="token punctuation">,</span> <span class="token string">&quot;https://&quot;</span><span class="token punctuation">)</span> <span class="token operator">||</span> strings<span class="token punctuation">.</span><span class="token function">HasPrefix</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">.</span>URL<span class="token punctuation">,</span> <span class="token string">&quot;http://&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">if</span> userInfo <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
            repo<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Credential<span class="token punctuation">.</span>Username <span class="token operator">=</span> userInfo<span class="token punctuation">.</span><span class="token function">Username</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
            repo<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Credential<span class="token punctuation">.</span>Password<span class="token punctuation">,</span> <span class="token boolean">_</span> <span class="token operator">=</span> userInfo<span class="token punctuation">.</span><span class="token function">Password</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> strings<span class="token punctuation">.</span><span class="token function">HasPrefix</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">.</span>URL<span class="token punctuation">,</span> <span class="token string">&quot;s3://&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        cfg <span class="token operator">:=</span> v1alpha1<span class="token punctuation">.</span>S3Config<span class="token punctuation">{</span><span class="token punctuation">}</span>
        err <span class="token operator">:=</span> json<span class="token punctuation">.</span><span class="token function">Unmarshal</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token function">byte</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">.</span>Credential<span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token operator">&amp;</span>cfg<span class="token punctuation">)</span>
        <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
            api<span class="token punctuation">.</span><span class="token function">HandleBadRequest</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
            <span class="token keyword">return</span>
        <span class="token punctuation">}</span>
        repo<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Credential<span class="token punctuation">.</span>S3Config <span class="token operator">=</span> cfg
    <span class="token punctuation">}</span>

    <span class="token keyword">var</span> result <span class="token keyword">interface</span><span class="token punctuation">{</span><span class="token punctuation">}</span>
    <span class="token comment">// 1. validate repo</span>
    result<span class="token punctuation">,</span> err <span class="token operator">=</span> h<span class="token punctuation">.</span>openpitrix<span class="token punctuation">.</span><span class="token function">ValidateRepo</span><span class="token punctuation">(</span>createRepoRequest<span class="token punctuation">.</span>URL<span class="token punctuation">,</span> <span class="token operator">&amp;</span>repo<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Credential<span class="token punctuation">)</span>
    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;validate repo failed, err: %s&quot;</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        api<span class="token punctuation">.</span><span class="token function">HandleBadRequest</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span>
    <span class="token punctuation">}</span>

    <span class="token comment">// 2. create repo</span>
    validate<span class="token punctuation">,</span> <span class="token boolean">_</span> <span class="token operator">:=</span> strconv<span class="token punctuation">.</span><span class="token function">ParseBool</span><span class="token punctuation">(</span>req<span class="token punctuation">.</span><span class="token function">QueryParameter</span><span class="token punctuation">(</span><span class="token string">&quot;validate&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token keyword">if</span> <span class="token operator">!</span>validate <span class="token punctuation">{</span>
        <span class="token keyword">if</span> repo<span class="token punctuation">.</span><span class="token function">GetTrueName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">==</span> <span class="token string">&quot;&quot;</span> <span class="token punctuation">{</span>
            api<span class="token punctuation">.</span><span class="token function">HandleBadRequest</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> fmt<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;repo name is empty&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
            <span class="token keyword">return</span>
        <span class="token punctuation">}</span>
        result<span class="token punctuation">,</span> err <span class="token operator">=</span> h<span class="token punctuation">.</span>openpitrix<span class="token punctuation">.</span><span class="token function">CreateRepo</span><span class="token punctuation">(</span><span class="token operator">&amp;</span>repo<span class="token punctuation">)</span> <span class="token comment">//&#x8DDF;&#x8FDB;</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Errorln</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span>
        <span class="token function">handleOpenpitrixError</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span>
    <span class="token punctuation">}</span>

    resp<span class="token punctuation">.</span><span class="token function">WriteEntity</span><span class="token punctuation">(</span>result<span class="token punctuation">)</span>
<span class="token punctuation">}</span>
</code></pre>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/models/openpitrix/repos.go#L113" target="_blank">&#x8C03;&#x7528;createRepo&#x65B9;&#x6CD5;</a></li>
</ul>
<pre class="language-"><code class="lang-go"><span class="token keyword">func</span> <span class="token punctuation">(</span>c <span class="token operator">*</span>repoOperator<span class="token punctuation">)</span> <span class="token function">CreateRepo</span><span class="token punctuation">(</span>repo <span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">)</span> <span class="token punctuation">(</span><span class="token operator">*</span>CreateRepoResponse<span class="token punctuation">,</span> <span class="token builtin">error</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    name <span class="token operator">:=</span> repo<span class="token punctuation">.</span><span class="token function">GetTrueName</span><span class="token punctuation">(</span><span class="token punctuation">)</span>

    items<span class="token punctuation">,</span> err <span class="token operator">:=</span> c<span class="token punctuation">.</span>repoLister<span class="token punctuation">.</span><span class="token function">List</span><span class="token punctuation">(</span>labels<span class="token punctuation">.</span><span class="token function">SelectorFromSet</span><span class="token punctuation">(</span><span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token builtin">string</span><span class="token punctuation">{</span>constants<span class="token punctuation">.</span>WorkspaceLabelKey<span class="token punctuation">:</span> repo<span class="token punctuation">.</span><span class="token function">GetWorkspace</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token operator">&amp;&amp;</span> <span class="token operator">!</span>apierrors<span class="token punctuation">.</span><span class="token function">IsNotFound</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;list helm repo failed: %s&quot;</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err
    <span class="token punctuation">}</span>

    <span class="token keyword">for</span> <span class="token boolean">_</span><span class="token punctuation">,</span> exists <span class="token operator">:=</span> <span class="token keyword">range</span> items <span class="token punctuation">{</span>
        <span class="token keyword">if</span> exists<span class="token punctuation">.</span><span class="token function">GetTrueName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">==</span> name <span class="token punctuation">{</span>
            klog<span class="token punctuation">.</span><span class="token function">Error</span><span class="token punctuation">(</span>repoItemExists<span class="token punctuation">,</span> <span class="token string">&quot;name: &quot;</span><span class="token punctuation">,</span> name<span class="token punctuation">)</span>
            <span class="token keyword">return</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> repoItemExists
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>

    repo<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Description <span class="token operator">=</span> stringutils<span class="token punctuation">.</span><span class="token function">ShortenString</span><span class="token punctuation">(</span>repo<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Description<span class="token punctuation">,</span> DescriptionLen<span class="token punctuation">)</span>
    <span class="token boolean">_</span><span class="token punctuation">,</span> err <span class="token operator">=</span> c<span class="token punctuation">.</span>repoClient<span class="token punctuation">.</span><span class="token function">HelmRepos</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">Create</span><span class="token punctuation">(</span>context<span class="token punctuation">.</span><span class="token function">TODO</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> repo<span class="token punctuation">,</span> metav1<span class="token punctuation">.</span>CreateOptions<span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// &#x8DDF;&#x8FDB;</span>
    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;create helm repo failed, repo_id: %s, error: %s&quot;</span><span class="token punctuation">,</span> repo<span class="token punctuation">.</span><span class="token function">GetHelmRepoId</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err
    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">V</span><span class="token punctuation">(</span><span class="token number">4</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">Infof</span><span class="token punctuation">(</span><span class="token string">&quot;create helm repo success, repo_id: %s&quot;</span><span class="token punctuation">,</span> repo<span class="token punctuation">.</span><span class="token function">GetHelmRepoId</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">return</span> <span class="token operator">&amp;</span>CreateRepoResponse<span class="token punctuation">{</span>repo<span class="token punctuation">.</span><span class="token function">GetHelmRepoId</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token boolean">nil</span>
<span class="token punctuation">}</span>
</code></pre>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/client/clientset/versioned/typed/application/v1alpha1/helmrepo.go#L108" target="_blank">&#x8C03;&#x7528;k8s api, &#x521B;&#x5EFA; crd HelmRepo</a></li>
</ul>
<pre class="language-"><code>// Create takes the representation of a helmRepo and creates it.  Returns the server&apos;s representation of the helmRepo, and an error, if there is any.
func (c *helmRepos) Create(ctx context.Context, helmRepo *v1alpha1.HelmRepo, opts v1.CreateOptions) (result *v1alpha1.HelmRepo, err error) {
    result = &amp;v1alpha1.HelmRepo{}
    err = c.client.Post().
        Resource(&quot;helmrepos&quot;).
        VersionedParams(&amp;opts, scheme.ParameterCodec).
        Body(helmRepo).
        Do(ctx).
        Into(result)
    return
}
</code></pre><h2 id="&#x67E5;&#x8BE2;helm-&#x4ED3;&#x5E93;&#x5E94;&#x7528;&#x6A21;&#x7248;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;"><a name="&#x67E5;&#x8BE2;helm-&#x4ED3;&#x5E93;&#x5E94;&#x7528;&#x6A21;&#x7248;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x8BE2;helm-&#x4ED3;&#x5E93;&#x5E94;&#x7528;&#x6A21;&#x7248;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x67E5;&#x8BE2;helm &#x4ED3;&#x5E93;&#x5E94;&#x7528;&#x6A21;&#x7248;&#x4EE3;&#x7801;&#x4ECB;&#x7ECD;</h2>
<h3 id="&#x63A5;&#x53E3;&#x5B9E;&#x73B0;"><a name="&#x63A5;&#x53E3;&#x5B9E;&#x73B0;" class="anchor-navigation-ex-anchor" href="#&#x63A5;&#x53E3;&#x5B9E;&#x73B0;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x63A5;&#x53E3;&#x5B9E;&#x73B0;</h3>
<ol>
<li>&#x8DEF;&#x7531;&#x6CE8;&#x518C;</li>
<li>handler&#xFF0C;&#x53C2;&#x6570;&#x89E3;&#x6790;&#xFF0C;&#x8C03;&#x7528;models &#x65B9;&#x9762;</li>
<li>models &#xFF0C; &#x8C03;&#x7528;models &#x65B9;&#x6CD5;</li>
<li>crd client&#xFF0C; &#x8C03;&#x7528;k8s api &#x5B58;&#x50A8;</li>
</ol>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/kapis/openpitrix/v1/register.go#L211" target="_blank">&#x8DEF;&#x7531;&#x6CE8;&#x518C;</a></li>
</ul>
<pre class="language-"><code class="lang-go">    webservice<span class="token punctuation">.</span><span class="token function">Route</span><span class="token punctuation">(</span>webservice<span class="token punctuation">.</span><span class="token function">GET</span><span class="token punctuation">(</span><span class="token string">&quot;/apps&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>LiHui<span class="token punctuation">,</span> <span class="token number">6</span> months ago<span class="token punctuation">:</span> &#x2022; openpitrix crd
        <span class="token function">Deprecate</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">To</span><span class="token punctuation">(</span>handler<span class="token punctuation">.</span>ListApps<span class="token punctuation">)</span><span class="token punctuation">.</span>  <span class="token comment">// &#x8DDF;&#x8FDB;</span>
        <span class="token function">Doc</span><span class="token punctuation">(</span><span class="token string">&quot;List app templates&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Param</span><span class="token punctuation">(</span>webservice<span class="token punctuation">.</span><span class="token function">QueryParameter</span><span class="token punctuation">(</span>params<span class="token punctuation">.</span>ConditionsParam<span class="token punctuation">,</span> <span class="token string">&quot;query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
            <span class="token function">Required</span><span class="token punctuation">(</span><span class="token boolean">false</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
            <span class="token function">DataFormat</span><span class="token punctuation">(</span><span class="token string">&quot;key=%s,key~%s&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Param</span><span class="token punctuation">(</span>webservice<span class="token punctuation">.</span><span class="token function">QueryParameter</span><span class="token punctuation">(</span>params<span class="token punctuation">.</span>PagingParam<span class="token punctuation">,</span> <span class="token string">&quot;paging query, e.g. limit=100,page=1&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
            <span class="token function">Required</span><span class="token punctuation">(</span><span class="token boolean">false</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
            <span class="token function">DataFormat</span><span class="token punctuation">(</span><span class="token string">&quot;limit=%d,page=%d&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
            <span class="token function">DefaultValue</span><span class="token punctuation">(</span><span class="token string">&quot;limit=10,page=1&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Param</span><span class="token punctuation">(</span>webservice<span class="token punctuation">.</span><span class="token function">QueryParameter</span><span class="token punctuation">(</span>params<span class="token punctuation">.</span>ReverseParam<span class="token punctuation">,</span> <span class="token string">&quot;sort parameters, e.g. reverse=true&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Param</span><span class="token punctuation">(</span>webservice<span class="token punctuation">.</span><span class="token function">QueryParameter</span><span class="token punctuation">(</span>params<span class="token punctuation">.</span>OrderByParam<span class="token punctuation">,</span> <span class="token string">&quot;sort parameters, e.g. orderBy=createTime&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Metadata</span><span class="token punctuation">(</span>restfulspec<span class="token punctuation">.</span>KeyOpenAPITags<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token builtin">string</span><span class="token punctuation">{</span>constants<span class="token punctuation">.</span>OpenpitrixTag<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span>
        <span class="token function">Returns</span><span class="token punctuation">(</span>http<span class="token punctuation">.</span>StatusOK<span class="token punctuation">,</span> api<span class="token punctuation">.</span>StatusOK<span class="token punctuation">,</span> models<span class="token punctuation">.</span>PageableResponse<span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
</code></pre>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/kapis/openpitrix/v1/handler.go#L398:29" target="_blank">&#x53C2;&#x6570;&#x89E3;&#x6790;&#xFF0C;&#x8C03;&#x7528;models &#x65B9;&#x9762;</a></li>
</ul>
<pre class="language-"><code class="lang-go"><span class="token keyword">func</span> <span class="token punctuation">(</span>h <span class="token operator">*</span>openpitrixHandler<span class="token punctuation">)</span> <span class="token function">ListApps</span><span class="token punctuation">(</span>req <span class="token operator">*</span>restful<span class="token punctuation">.</span>Request<span class="token punctuation">,</span> resp <span class="token operator">*</span>restful<span class="token punctuation">.</span>Response<span class="token punctuation">)</span>
    limit<span class="token punctuation">,</span> offset <span class="token operator">:=</span> params<span class="token punctuation">.</span><span class="token function">ParsePaging</span><span class="token punctuation">(</span>req<span class="token punctuation">)</span>
    orderBy <span class="token operator">:=</span> params<span class="token punctuation">.</span><span class="token function">GetStringValueWithDefault</span><span class="token punctuation">(</span>req<span class="token punctuation">,</span> params<span class="token punctuation">.</span>OrderByParam<span class="token punctuation">,</span> openpitrix<span class="token punctuation">.</span>CreateTime<span class="token punctuation">)</span>
    reverse <span class="token operator">:=</span> params<span class="token punctuation">.</span><span class="token function">GetBoolValueWithDefault</span><span class="token punctuation">(</span>req<span class="token punctuation">,</span> params<span class="token punctuation">.</span>ReverseParam<span class="token punctuation">,</span> <span class="token boolean">false</span><span class="token punctuation">)</span>
    conditions<span class="token punctuation">,</span> err <span class="token operator">:=</span> params<span class="token punctuation">.</span><span class="token function">ParseConditions</span><span class="token punctuation">(</span>req<span class="token punctuation">)</span>

    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">V</span><span class="token punctuation">(</span><span class="token number">4</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">Infoln</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span>
        api<span class="token punctuation">.</span><span class="token function">HandleBadRequest</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">if</span> req<span class="token punctuation">.</span><span class="token function">PathParameter</span><span class="token punctuation">(</span><span class="token string">&quot;workspace&quot;</span><span class="token punctuation">)</span> <span class="token operator">!=</span> <span class="token string">&quot;&quot;</span> <span class="token punctuation">{</span>
        conditions<span class="token punctuation">.</span>Match<span class="token punctuation">[</span>openpitrix<span class="token punctuation">.</span>WorkspaceLabel<span class="token punctuation">]</span> <span class="token operator">=</span> req<span class="token punctuation">.</span><span class="token function">PathParameter</span><span class="token punctuation">(</span><span class="token string">&quot;workspace&quot;</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>

    result<span class="token punctuation">,</span> err <span class="token operator">:=</span> h<span class="token punctuation">.</span>openpitrix<span class="token punctuation">.</span><span class="token function">ListApps</span><span class="token punctuation">(</span>conditions<span class="token punctuation">,</span> orderBy<span class="token punctuation">,</span> reverse<span class="token punctuation">,</span> limit<span class="token punctuation">,</span> offset<span class="token punctuation">)</span>  <span class="token comment">// &#x8DDF;&#x8FDB;</span>

    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Errorln</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span>
        <span class="token function">handleOpenpitrixError</span><span class="token punctuation">(</span>resp<span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span>
    <span class="token punctuation">}</span>

    resp<span class="token punctuation">.</span><span class="token function">WriteEntity</span><span class="token punctuation">(</span>result<span class="token punctuation">)</span>
<span class="token punctuation">}</span>
</code></pre>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/models/openpitrix/applications.go#L299" target="_blank">&#x4ECE;&#x7F13;&#x5B58;&#x4E2D;&#x83B7;&#x53D6;applist</a></li>
</ul>
<pre class="language-"><code class="lang-go"><span class="token keyword">func</span> <span class="token punctuation">(</span>c <span class="token operator">*</span>applicationOperator<span class="token punctuation">)</span> <span class="token function">ListApps</span><span class="token punctuation">(</span>conditions <span class="token operator">*</span>params<span class="token punctuation">.</span>Conditions<span class="token punctuation">,</span> orderBy <span class="token builtin">string</span><span class="token punctuation">,</span> reverse <span class="token builtin">bool</span><span class="token punctuation">,</span> limit<span class="token punctuation">,</span> offset <span class="token builtin">int</span><span class="token punctuation">)</span> <span class="token punctuation">(</span><span class="token operator">*</span>models<span class="token punctuation">.</span>PageableResponse<span class="token punctuation">,</span> <span class="token builtin">error</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>

    apps<span class="token punctuation">,</span> err <span class="token operator">:=</span> c<span class="token punctuation">.</span><span class="token function">listApps</span><span class="token punctuation">(</span>conditions<span class="token punctuation">)</span>  <span class="token comment">// &#x91CD;&#x70B9;&#x8DDF;&#x8FDB;</span>
    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span>
        <span class="token keyword">return</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err
    <span class="token punctuation">}</span>
    apps <span class="token operator">=</span> <span class="token function">filterApps</span><span class="token punctuation">(</span>apps<span class="token punctuation">,</span> conditions<span class="token punctuation">)</span>

    <span class="token keyword">if</span> reverse <span class="token punctuation">{</span>
        sort<span class="token punctuation">.</span><span class="token function">Sort</span><span class="token punctuation">(</span>sort<span class="token punctuation">.</span><span class="token function">Reverse</span><span class="token punctuation">(</span><span class="token function">HelmApplicationList</span><span class="token punctuation">(</span>apps<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
        sort<span class="token punctuation">.</span><span class="token function">Sort</span><span class="token punctuation">(</span><span class="token function">HelmApplicationList</span><span class="token punctuation">(</span>apps<span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>

    totalCount <span class="token operator">:=</span> <span class="token function">len</span><span class="token punctuation">(</span>apps<span class="token punctuation">)</span>
    start<span class="token punctuation">,</span> end <span class="token operator">:=</span> <span class="token punctuation">(</span><span class="token operator">&amp;</span>query<span class="token punctuation">.</span>Pagination<span class="token punctuation">{</span>Limit<span class="token punctuation">:</span> limit<span class="token punctuation">,</span> Offset<span class="token punctuation">:</span> offset<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">GetValidPagination</span><span class="token punctuation">(</span>totalCount<span class="token punctuation">)</span>
    apps <span class="token operator">=</span> apps<span class="token punctuation">[</span>start<span class="token punctuation">:</span>end<span class="token punctuation">]</span>
    items <span class="token operator">:=</span> <span class="token function">make</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token keyword">interface</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token function">len</span><span class="token punctuation">(</span>apps<span class="token punctuation">)</span><span class="token punctuation">)</span>

    <span class="token keyword">for</span> i <span class="token operator">:=</span> <span class="token keyword">range</span> apps <span class="token punctuation">{</span>
        versions<span class="token punctuation">,</span> err <span class="token operator">:=</span> c<span class="token punctuation">.</span><span class="token function">getAppVersionsByAppId</span><span class="token punctuation">(</span>apps<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token function">GetHelmApplicationId</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
        <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token operator">&amp;&amp;</span> <span class="token operator">!</span>apierrors<span class="token punctuation">.</span><span class="token function">IsNotFound</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> err
        <span class="token punctuation">}</span>
        ctg<span class="token punctuation">,</span> <span class="token boolean">_</span> <span class="token operator">:=</span> c<span class="token punctuation">.</span>ctgLister<span class="token punctuation">.</span><span class="token function">Get</span><span class="token punctuation">(</span>apps<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token function">GetHelmCategoryId</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
        items <span class="token operator">=</span> <span class="token function">append</span><span class="token punctuation">(</span>items<span class="token punctuation">,</span> <span class="token function">convertApp</span><span class="token punctuation">(</span>apps<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">,</span> versions<span class="token punctuation">,</span> ctg<span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
    <span class="token keyword">return</span> <span class="token operator">&amp;</span>models<span class="token punctuation">.</span>PageableResponse<span class="token punctuation">{</span>Items<span class="token punctuation">:</span> items<span class="token punctuation">,</span> TotalCount<span class="token punctuation">:</span> totalCount<span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token boolean">nil</span>
<span class="token punctuation">}</span>

<span class="token comment">// line 601</span>
<span class="token keyword">func</span> <span class="token punctuation">(</span>c <span class="token operator">*</span>applicationOperator<span class="token punctuation">)</span> <span class="token function">listApps</span><span class="token punctuation">(</span>conditions <span class="token operator">*</span>params<span class="token punctuation">.</span>Conditions<span class="token punctuation">)</span> <span class="token punctuation">(</span>ret <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmApplication<span class="token punctuation">,</span> err <span class="token builtin">error</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    repoId <span class="token operator">:=</span> conditions<span class="token punctuation">.</span>Match<span class="token punctuation">[</span>RepoId<span class="token punctuation">]</span>
    <span class="token keyword">if</span> repoId <span class="token operator">!=</span> <span class="token string">&quot;&quot;</span> <span class="token operator">&amp;&amp;</span> repoId <span class="token operator">!=</span> v1alpha1<span class="token punctuation">.</span>AppStoreRepoId <span class="token punctuation">{</span>
        <span class="token comment">// get helm application from helm repo</span>
        <span class="token keyword">if</span> ret<span class="token punctuation">,</span> exists <span class="token operator">:=</span> c<span class="token punctuation">.</span>cachedRepos<span class="token punctuation">.</span><span class="token function">ListApplicationsByRepoId</span><span class="token punctuation">(</span>repoId<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token operator">!</span>exists <span class="token punctuation">{</span>
            klog<span class="token punctuation">.</span><span class="token function">Warningf</span><span class="token punctuation">(</span><span class="token string">&quot;load repo failed, repo id: %s&quot;</span><span class="token punctuation">,</span> repoId<span class="token punctuation">)</span>
            <span class="token keyword">return</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> loadRepoInfoFailed
        <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
            <span class="token keyword">return</span> ret<span class="token punctuation">,</span> <span class="token boolean">nil</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
        <span class="token keyword">if</span> c<span class="token punctuation">.</span>backingStoreClient <span class="token operator">==</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmApplication<span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token boolean">nil</span>
        <span class="token punctuation">}</span>
        ret<span class="token punctuation">,</span> err <span class="token operator">=</span> c<span class="token punctuation">.</span>appLister<span class="token punctuation">.</span><span class="token function">List</span><span class="token punctuation">(</span>labels<span class="token punctuation">.</span><span class="token function">SelectorFromSet</span><span class="token punctuation">(</span><span class="token function">buildLabelSelector</span><span class="token punctuation">(</span>conditions<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">return</span>
<span class="token punctuation">}</span>
</code></pre>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/utils/reposcache/repo_cahes.go#L265" target="_blank">&#x7F13;&#x5B58;&#x5177;&#x4F53;&#x83B7;&#x53D6;&#x5E94;&#x7528;&#x903B;&#x8F91;</a></li>
</ul>
<pre class="language-"><code class="lang-go"><span class="token keyword">func</span> <span class="token punctuation">(</span>c <span class="token operator">*</span>cachedRepos<span class="token punctuation">)</span> <span class="token function">ListApplicationsByRepoId</span><span class="token punctuation">(</span>repoId <span class="token builtin">string</span><span class="token punctuation">)</span> <span class="token punctuation">(</span>ret <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmApplication<span class="token punctuation">,</span> exists <span class="token builtin">bool</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    c<span class="token punctuation">.</span><span class="token function">RLock</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
    <span class="token keyword">defer</span> c<span class="token punctuation">.</span><span class="token function">RUnlock</span><span class="token punctuation">(</span><span class="token punctuation">)</span>

    <span class="token keyword">if</span> repo<span class="token punctuation">,</span> exists <span class="token operator">:=</span> c<span class="token punctuation">.</span>repos<span class="token punctuation">[</span>repoId<span class="token punctuation">]</span><span class="token punctuation">;</span> <span class="token operator">!</span>exists <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token boolean">nil</span><span class="token punctuation">,</span> <span class="token boolean">false</span>
    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
        ret <span class="token operator">=</span> <span class="token function">make</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmApplication<span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token number">10</span><span class="token punctuation">)</span>
        <span class="token keyword">for</span> <span class="token boolean">_</span><span class="token punctuation">,</span> app <span class="token operator">:=</span> <span class="token keyword">range</span> c<span class="token punctuation">.</span>apps <span class="token punctuation">{</span>
            <span class="token keyword">if</span> app<span class="token punctuation">.</span><span class="token function">GetHelmRepoId</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">==</span> repo<span class="token punctuation">.</span>Name <span class="token punctuation">{</span> <span class="token comment">// &#x5E94;&#x7528;&#x7684;&#x4ED3;&#x5E93;ID&#x76F8;&#x540C;&#x5219;&#x8FFD;&#x52A0;</span>
                ret <span class="token operator">=</span> <span class="token function">append</span><span class="token punctuation">(</span>ret<span class="token punctuation">,</span> app<span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
    <span class="token keyword">return</span> ret<span class="token punctuation">,</span> <span class="token boolean">true</span>
<span class="token punctuation">}</span>
</code></pre>
<blockquote>
<p>&#x65E2;&#x7136;app template &#x662F;&#x4ECE;&#x7F13;&#x5B58;&#x4E2D;&#x83B7;&#x53D6;&#x7684;&#xFF0C;&#x90A3;&#x4E48;&#x7F13;&#x5B58;&#x4E2D;&#x7684;&#x6570;&#x636E;&#x53C8;&#x662F;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x5F55;&#x5165;&#x7684;&#x5462;&#xFF1F;</p>
</blockquote>
<ol>
<li>&#x521B;&#x5EFA;&#x5168;&#x5C40;&#x7F13;&#x5B58;&#x53D8;&#x91CF;</li>
<li>&#x6DFB;&#x52A0;&#x65B0;helm&#x4ED3;&#x5E93;&#xFF0C;k8s&#x4E2D;&#x5DF2;&#x5B89;&#x88C5;crd&#x63A7;&#x5236;&#x5668;helmRepoController &#x53D1;&#x73B0;&#x6709;&#x65B0;&#x7684;helmRepo &#x521B;&#x5EFA;&#xFF0C;&#x66F4;&#x65B0;.Status.Data&#x5185;&#x5BB9;</li>
<li>informer &#x53D1;&#x73B0;&#x6709;&#x66F4;&#x65B0;&#xFF0C;&#x540C;&#x65F6;&#x66F4;&#x65B0;&#x7F13;&#x5B58;</li>
</ol>
<h2 id="&#x7F13;&#x5B58;&#x66F4;&#x65B0;&#x7684;&#x5B9E;&#x73B0;"><a name="&#x7F13;&#x5B58;&#x66F4;&#x65B0;&#x7684;&#x5B9E;&#x73B0;" class="anchor-navigation-ex-anchor" href="#&#x7F13;&#x5B58;&#x66F4;&#x65B0;&#x7684;&#x5B9E;&#x73B0;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7F13;&#x5B58;&#x66F4;&#x65B0;&#x7684;&#x5B9E;&#x73B0;</h2>
<ol>
<li><p>&#x521B;&#x5EFA;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x901A;&#x8FC7;init&#x51FD;&#x6570;&#x521D;&#x59CB;&#x5316;</p>
</li>
<li><p>&#x901A;&#x8FC7;helmRepo&#x7684;informer&#x5B9E;&#x73B0;&#x7F13;&#x5B58;&#x540C;&#x6B65;&#x66F4;&#x65B0;</p>
</li>
<li><p>&#x5728;&#x6BCF;&#x6B21;&#x8C03;&#x7528;&#x63A5;&#x53E3;&#x7684;&#x65F6;&#x5019;&#xFF0C;hanlder &#x7C7B;&#x4E2D;&#x5305;&#x6362;&#x4E86;&#x7F13;&#x5B58;&#x53D8;&#x91CF;</p>
</li>
</ol>
<ul>
<li><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/kapis/openpitrix/v1/handler.go#L51" target="_blank">&#x521B;&#x5EFA;&#x63A5;&#x53E3;&#x7C7B;openpitrix.Interface</a></li>
</ul>
<pre class="language-"><code class="lang-go"><span class="token keyword">type</span> openpitrixHandler <span class="token keyword">struct</span> <span class="token punctuation">{</span>
    openpitrix openpitrix<span class="token punctuation">.</span>Interface
<span class="token punctuation">}</span>

<span class="token keyword">func</span> <span class="token function">newOpenpitrixHandler</span><span class="token punctuation">(</span>ksInformers informers<span class="token punctuation">.</span>InformerFactory<span class="token punctuation">,</span> ksClient versioned<span class="token punctuation">.</span>Interface<span class="token punctuation">,</span> option <span class="token operator">*</span>openpitrixoptions<span class="token punctuation">.</span>Options<span class="token punctuation">)</span> <span class="token operator">*</span>openpitrixHandler <span class="token punctuation">{</span>
    <span class="token keyword">var</span> s3Client s3<span class="token punctuation">.</span>Interface
    <span class="token keyword">if</span> option <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token operator">&amp;&amp;</span> option<span class="token punctuation">.</span>S3Options <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token operator">&amp;&amp;</span> <span class="token function">len</span><span class="token punctuation">(</span>option<span class="token punctuation">.</span>S3Options<span class="token punctuation">.</span>Endpoint<span class="token punctuation">)</span> <span class="token operator">!=</span> <span class="token number">0</span> <span class="token punctuation">{</span>
        <span class="token keyword">var</span> err <span class="token builtin">error</span>
        s3Client<span class="token punctuation">,</span> err <span class="token operator">=</span> s3<span class="token punctuation">.</span><span class="token function">NewS3Client</span><span class="token punctuation">(</span>option<span class="token punctuation">.</span>S3Options<span class="token punctuation">)</span>
        <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
            klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;failed to connect to storage, please check storage service status, error: %v&quot;</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">return</span> <span class="token operator">&amp;</span>openpitrixHandler<span class="token punctuation">{</span>
        openpitrix<span class="token punctuation">.</span><span class="token function">NewOpenpitrixOperator</span><span class="token punctuation">(</span>ksInformers<span class="token punctuation">,</span> ksClient<span class="token punctuation">,</span> s3Client<span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<p><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/models/openpitrix/interface.go#L58:6" target="_blank">NewOpenpitrixOperator</a></p>
<ul>
<li>&#x901A;&#x8FC7;&#x5728;informer&#x4E2D;&#x6DFB;&#x52A0;&#x901A;&#x77E5;&#x51FD;&#x6570;&#xFF0C;&#x6267;&#x884C;&#x7F13;&#x5B58;&#x66F4;&#x65B0;</li>
<li>once.Do &#x53EA;&#x6267;&#x884C;&#x4E00;&#x6B21;</li>
</ul>
<pre class="language-"><code class="lang-go"><span class="token keyword">var</span> cachedReposData reposcache<span class="token punctuation">.</span>ReposCache
<span class="token keyword">var</span> helmReposInformer cache<span class="token punctuation">.</span>SharedIndexInformer
<span class="token keyword">var</span> once sync<span class="token punctuation">.</span>Once


<span class="token keyword">func</span> <span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    cachedReposData <span class="token operator">=</span> reposcache<span class="token punctuation">.</span><span class="token function">NewReposCache</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// &#x5168;&#x5C40;&#x7F13;&#x5B58;</span>
<span class="token punctuation">}</span>

<span class="token keyword">func</span> <span class="token function">NewOpenpitrixOperator</span><span class="token punctuation">(</span>ksInformers ks_informers<span class="token punctuation">.</span>InformerFactory<span class="token punctuation">,</span> ksClient versioned<span class="token punctuation">.</span>Interface<span class="token punctuation">,</span> s3Client s3<span class="token punctuation">.</span>Interface<span class="token punctuation">)</span> Interface <span class="token punctuation">{</span>

    once<span class="token punctuation">.</span><span class="token function">Do</span><span class="token punctuation">(</span><span class="token keyword">func</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Infof</span><span class="token punctuation">(</span><span class="token string">&quot;start helm repo informer&quot;</span><span class="token punctuation">)</span>
        helmReposInformer <span class="token operator">=</span> ksInformers<span class="token punctuation">.</span><span class="token function">KubeSphereSharedInformerFactory</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">Application</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">V1alpha1</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">HelmRepos</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">Informer</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
        helmReposInformer<span class="token punctuation">.</span><span class="token function">AddEventHandler</span><span class="token punctuation">(</span>cache<span class="token punctuation">.</span>ResourceEventHandlerFuncs<span class="token punctuation">{</span>
            AddFunc<span class="token punctuation">:</span> <span class="token keyword">func</span><span class="token punctuation">(</span>obj <span class="token keyword">interface</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                r <span class="token operator">:=</span> obj<span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">)</span>
                cachedReposData<span class="token punctuation">.</span><span class="token function">AddRepo</span><span class="token punctuation">(</span>r<span class="token punctuation">)</span> <span class="token comment">// &#x7F13;&#x5B58;&#x66F4;&#x65B0;&#xFF0C; &#x70B9;&#x51FB;&#x8DDF;&#x8FDB;</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
            UpdateFunc<span class="token punctuation">:</span> <span class="token keyword">func</span><span class="token punctuation">(</span>oldObj<span class="token punctuation">,</span> newObj <span class="token keyword">interface</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                oldR <span class="token operator">:=</span> oldObj<span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">)</span>
                cachedReposData<span class="token punctuation">.</span><span class="token function">DeleteRepo</span><span class="token punctuation">(</span>oldR<span class="token punctuation">)</span>
                r <span class="token operator">:=</span> newObj<span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">)</span>
                cachedReposData<span class="token punctuation">.</span><span class="token function">AddRepo</span><span class="token punctuation">(</span>r<span class="token punctuation">)</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
            DeleteFunc<span class="token punctuation">:</span> <span class="token keyword">func</span><span class="token punctuation">(</span>obj <span class="token keyword">interface</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                r <span class="token operator">:=</span> obj<span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">)</span>
                cachedReposData<span class="token punctuation">.</span><span class="token function">DeleteRepo</span><span class="token punctuation">(</span>r<span class="token punctuation">)</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
        <span class="token keyword">go</span> helmReposInformer<span class="token punctuation">.</span><span class="token function">Run</span><span class="token punctuation">(</span>wait<span class="token punctuation">.</span>NeverStop<span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span>

    <span class="token keyword">return</span> <span class="token operator">&amp;</span>openpitrixOperator<span class="token punctuation">{</span>
        AttachmentInterface<span class="token punctuation">:</span>  <span class="token function">newAttachmentOperator</span><span class="token punctuation">(</span>s3Client<span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token comment">// cachedReposData used</span>
        ApplicationInterface<span class="token punctuation">:</span> <span class="token function">newApplicationOperator</span><span class="token punctuation">(</span>cachedReposData<span class="token punctuation">,</span> ksInformers<span class="token punctuation">.</span><span class="token function">KubeSphereSharedInformerFactory</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> ksClient<span class="token punctuation">,</span> s3Client<span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token comment">// cachedReposData used</span>
        RepoInterface<span class="token punctuation">:</span>        <span class="token function">newRepoOperator</span><span class="token punctuation">(</span>cachedReposData<span class="token punctuation">,</span> ksInformers<span class="token punctuation">.</span><span class="token function">KubeSphereSharedInformerFactory</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> ksClient<span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token comment">// cachedReposData used</span>
        ReleaseInterface<span class="token punctuation">:</span>     <span class="token function">newReleaseOperator</span><span class="token punctuation">(</span>cachedReposData<span class="token punctuation">,</span> ksInformers<span class="token punctuation">.</span><span class="token function">KubernetesSharedInformerFactory</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> ksInformers<span class="token punctuation">.</span><span class="token function">KubeSphereSharedInformerFactory</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> ksClient<span class="token punctuation">)</span><span class="token punctuation">,</span>
        CategoryInterface<span class="token punctuation">:</span>    <span class="token function">newCategoryOperator</span><span class="token punctuation">(</span>ksInformers<span class="token punctuation">.</span><span class="token function">KubeSphereSharedInformerFactory</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> ksClient<span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<p><a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/utils/reposcache/repo_cahes.go#L120" target="_blank">&#x7F13;&#x5B58;&#x66F4;&#x65B0;&#x903B;&#x8F91;</a></p>
<pre class="language-"><code class="lang-go"><span class="token comment">// &#x7F13;&#x5B58;&#x7ED3;&#x6784;&#x4F53;</span>
<span class="token keyword">type</span> cachedRepos <span class="token keyword">struct</span> <span class="token punctuation">{</span>
    sync<span class="token punctuation">.</span>RWMutex

    chartsInRepo  <span class="token keyword">map</span><span class="token punctuation">[</span>workspace<span class="token punctuation">]</span><span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token builtin">int</span>
    repoCtgCounts <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token builtin">int</span>

    repos    <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo
    apps     <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmApplication
    versions <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmApplicationVersion
<span class="token punctuation">}</span>
</code></pre>
<ul>
<li>ByteArrayToSavedIndex&#xFF1A; &#x5C06;repo.Status.Data &#x8F6C;&#x6362;&#x4E3A;SavedIndex&#x6570;&#x7EC4;&#x5BF9;&#x8C61;</li>
<li>&#x904D;&#x5386; SavedIndex.Applications</li>
<li>&#x4FDD;&#x5B58;&#xFF08;app.ApplicationId&#xFF1A;HelmApplication&#xFF09;&#x5230; cachedRepos.apps</li>
</ul>
<pre class="language-"><code class="lang-go">
<span class="token keyword">func</span> <span class="token punctuation">(</span>c <span class="token operator">*</span>cachedRepos<span class="token punctuation">)</span> <span class="token function">AddRepo</span><span class="token punctuation">(</span>repo <span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">)</span> <span class="token builtin">error</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> c<span class="token punctuation">.</span><span class="token function">addRepo</span><span class="token punctuation">(</span>repo<span class="token punctuation">,</span> <span class="token boolean">false</span><span class="token punctuation">)</span>
<span class="token punctuation">}</span>

<span class="token comment">//Add new Repo to cachedRepos</span>
<span class="token keyword">func</span> <span class="token punctuation">(</span>c <span class="token operator">*</span>cachedRepos<span class="token punctuation">)</span> <span class="token function">addRepo</span><span class="token punctuation">(</span>repo <span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">,</span> builtin <span class="token builtin">bool</span><span class="token punctuation">)</span> <span class="token builtin">error</span> <span class="token punctuation">{</span>
    <span class="token keyword">if</span> <span class="token function">len</span><span class="token punctuation">(</span>repo<span class="token punctuation">.</span>Status<span class="token punctuation">.</span>Data<span class="token punctuation">)</span> <span class="token operator">==</span> <span class="token number">0</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token boolean">nil</span>
    <span class="token punctuation">}</span>
    index<span class="token punctuation">,</span> err <span class="token operator">:=</span> helmrepoindex<span class="token punctuation">.</span><span class="token function">ByteArrayToSavedIndex</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token function">byte</span><span class="token punctuation">(</span>repo<span class="token punctuation">.</span>Status<span class="token punctuation">.</span>Data<span class="token punctuation">)</span><span class="token punctuation">)</span>
    <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
        klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;json unmarshal repo %s failed, error: %s&quot;</span><span class="token punctuation">,</span> repo<span class="token punctuation">.</span>Name<span class="token punctuation">,</span> err<span class="token punctuation">)</span>
        <span class="token keyword">return</span> err
    <span class="token punctuation">}</span>
    <span class="token operator">...</span>

    chartsCount <span class="token operator">:=</span> <span class="token number">0</span>
    <span class="token keyword">for</span> key<span class="token punctuation">,</span> app <span class="token operator">:=</span> <span class="token keyword">range</span> index<span class="token punctuation">.</span>Applications <span class="token punctuation">{</span>
        <span class="token keyword">if</span> builtin <span class="token punctuation">{</span>
            appName <span class="token operator">=</span> v1alpha1<span class="token punctuation">.</span>HelmApplicationIdPrefix <span class="token operator">+</span> app<span class="token punctuation">.</span>Name
        <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
            appName <span class="token operator">=</span> app<span class="token punctuation">.</span>ApplicationId
        <span class="token punctuation">}</span>

        HelmApp <span class="token operator">:=</span> v1alpha1<span class="token punctuation">.</span>HelmApplication<span class="token punctuation">{</span>
        <span class="token operator">...</span><span class="token punctuation">.</span>
        <span class="token punctuation">}</span>
        c<span class="token punctuation">.</span>apps<span class="token punctuation">[</span>app<span class="token punctuation">.</span>ApplicationId<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token operator">&amp;</span>HelmApp

        <span class="token keyword">var</span> ctg<span class="token punctuation">,</span> appVerName <span class="token builtin">string</span>
        <span class="token keyword">var</span> chartData <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token builtin">byte</span>
        <span class="token keyword">for</span> <span class="token boolean">_</span><span class="token punctuation">,</span> ver <span class="token operator">:=</span> <span class="token keyword">range</span> app<span class="token punctuation">.</span>Charts <span class="token punctuation">{</span>
            chartsCount <span class="token operator">+=</span> <span class="token number">1</span>
            <span class="token keyword">if</span> ver<span class="token punctuation">.</span>Annotations <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token operator">&amp;&amp;</span> ver<span class="token punctuation">.</span>Annotations<span class="token punctuation">[</span><span class="token string">&quot;category&quot;</span><span class="token punctuation">]</span> <span class="token operator">!=</span> <span class="token string">&quot;&quot;</span> <span class="token punctuation">{</span>
                ctg <span class="token operator">=</span> ver<span class="token punctuation">.</span>Annotations<span class="token punctuation">[</span><span class="token string">&quot;category&quot;</span><span class="token punctuation">]</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> builtin <span class="token punctuation">{</span>
                appVerName <span class="token operator">=</span> base64<span class="token punctuation">.</span>StdEncoding<span class="token punctuation">.</span><span class="token function">EncodeToString</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token function">byte</span><span class="token punctuation">(</span>ver<span class="token punctuation">.</span>Name <span class="token operator">+</span> ver<span class="token punctuation">.</span>Version<span class="token punctuation">)</span><span class="token punctuation">)</span>
                chartData<span class="token punctuation">,</span> err <span class="token operator">=</span> <span class="token function">loadBuiltinChartData</span><span class="token punctuation">(</span>ver<span class="token punctuation">.</span>Name<span class="token punctuation">,</span> ver<span class="token punctuation">.</span>Version<span class="token punctuation">)</span>
                <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
                    <span class="token keyword">return</span> err
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                appVerName <span class="token operator">=</span> ver<span class="token punctuation">.</span>ApplicationVersionId
            <span class="token punctuation">}</span>

            version <span class="token operator">:=</span> <span class="token operator">&amp;</span>v1alpha1<span class="token punctuation">.</span>HelmApplicationVersion<span class="token punctuation">{</span>
            <span class="token operator">...</span><span class="token punctuation">.</span>
            <span class="token punctuation">}</span>
            c<span class="token punctuation">.</span>versions<span class="token punctuation">[</span>ver<span class="token punctuation">.</span>ApplicationVersionId<span class="token punctuation">]</span> <span class="token operator">=</span> version
        <span class="token punctuation">}</span>
        <span class="token operator">...</span><span class="token punctuation">.</span>
    <span class="token punctuation">}</span>
    <span class="token keyword">return</span> <span class="token boolean">nil</span>
<span class="token punctuation">}</span>
</code></pre>
<h2 id="helmrepo-&#x534F;&#x8C03;&#x5668;"><a name="helmrepo-&#x534F;&#x8C03;&#x5668;" class="anchor-navigation-ex-anchor" href="#helmrepo-&#x534F;&#x8C03;&#x5668;"><i class="fa fa-link" aria-hidden="true"></i></a>helmRepo &#x534F;&#x8C03;&#x5668;</h2>
<h3 id="helmrepostatusdata-&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;"><a name="helmrepostatusdata-&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;" class="anchor-navigation-ex-anchor" href="#helmrepostatusdata-&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;"><i class="fa fa-link" aria-hidden="true"></i></a>HelmRepo.Status.Data &#x52A0;&#x8F7D;&#x6D41;&#x7A0B;</h3>
<ol>
<li><p>LoadRepoIndex:  convert index.yaml to IndexFile</p>
</li>
<li><p>MergeRepoIndex: merge new and old IndexFile</p>
</li>
<li><p>savedIndex.Bytes():  compress data with zlib.NewWriter</p>
</li>
<li><p>&#x5C06;savedIndex &#x6570;&#x636E;&#x5B58;&#x5165; CRD&#xFF08;helmRepo.Status.Data) </p>
</li>
</ol>
<p>   &#x5173;&#x952E;&#x7ED3;&#x6784;&#x4F53;</p>
<pre class="language-"><code class="lang-go">   <span class="token comment">// helmRepo.Status.Data == SavedIndex &#x538B;&#x7F29;&#x540E;&#x7684;&#x6570;&#x636E;</span>
   <span class="token keyword">type</span> SavedIndex <span class="token keyword">struct</span> <span class="token punctuation">{</span>
       APIVersion   <span class="token builtin">string</span>                  <span class="token string">`json:&quot;apiVersion&quot;`</span>
       Generated    time<span class="token punctuation">.</span>Time               <span class="token string">`json:&quot;generated&quot;`</span>
       Applications <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token operator">*</span>Application <span class="token string">`json:&quot;apps&quot;`</span>
       PublicKeys   <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token builtin">string</span>                <span class="token string">`json:&quot;publicKeys,omitempty&quot;`</span>

       <span class="token comment">// Annotations are additional mappings uninterpreted by Helm. They are made available for</span>
       <span class="token comment">// other applications to add information to the index file.</span>
       Annotations <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span><span class="token builtin">string</span> <span class="token string">`json:&quot;annotations,omitempty&quot;`</span>
   <span class="token punctuation">}</span>

   <span class="token comment">// IndexFile represents the index file in a chart repository</span>
   <span class="token keyword">type</span> IndexFile <span class="token keyword">struct</span> <span class="token punctuation">{</span>
       APIVersion <span class="token builtin">string</span>                   <span class="token string">`json:&quot;apiVersion&quot;`</span>
       Generated  time<span class="token punctuation">.</span>Time                <span class="token string">`json:&quot;generated&quot;`</span>
       Entries    <span class="token keyword">map</span><span class="token punctuation">[</span><span class="token builtin">string</span><span class="token punctuation">]</span>ChartVersions <span class="token string">`json:&quot;entries&quot;`</span>
       PublicKeys <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token builtin">string</span>                 <span class="token string">`json:&quot;publicKeys,omitempty&quot;`</span>
   <span class="token punctuation">}</span>
</code></pre>
<p>   <a href="https://github.com/kubesphere/kubesphere/blob/d4be6d704ab1356d79d0fd677aa13915ad3a73e4/pkg/controller/openpitrix/helmrepo/helm_repo_controller.go#L291" target="_blank">&#x4EE3;&#x7801;&#x4F4D;&#x7F6E;</a></p>
<pre class="language-"><code class="lang-go">   <span class="token keyword">func</span> <span class="token punctuation">(</span>r <span class="token operator">*</span>ReconcileHelmRepo<span class="token punctuation">)</span> <span class="token function">syncRepo</span><span class="token punctuation">(</span>instance <span class="token operator">*</span>v1alpha1<span class="token punctuation">.</span>HelmRepo<span class="token punctuation">)</span> <span class="token builtin">error</span> <span class="token punctuation">{</span>
       <span class="token comment">// 1. load index from helm repo</span>
       index<span class="token punctuation">,</span> err <span class="token operator">:=</span> helmrepoindex<span class="token punctuation">.</span><span class="token function">LoadRepoIndex</span><span class="token punctuation">(</span>context<span class="token punctuation">.</span><span class="token function">TODO</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> instance<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Url<span class="token punctuation">,</span> <span class="token operator">&amp;</span>instance<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Credential<span class="token punctuation">)</span>

       <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
           klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;load index failed, repo: %s, url: %s, err: %s&quot;</span><span class="token punctuation">,</span> instance<span class="token punctuation">.</span><span class="token function">GetTrueName</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> instance<span class="token punctuation">.</span>Spec<span class="token punctuation">.</span>Url<span class="token punctuation">,</span> err<span class="token punctuation">)</span>
           <span class="token keyword">return</span> err
       <span class="token punctuation">}</span>

       existsSavedIndex <span class="token operator">:=</span> <span class="token operator">&amp;</span>helmrepoindex<span class="token punctuation">.</span>SavedIndex<span class="token punctuation">{</span><span class="token punctuation">}</span>
       <span class="token keyword">if</span> <span class="token function">len</span><span class="token punctuation">(</span>instance<span class="token punctuation">.</span>Status<span class="token punctuation">.</span>Data<span class="token punctuation">)</span> <span class="token operator">!=</span> <span class="token number">0</span> <span class="token punctuation">{</span>
           existsSavedIndex<span class="token punctuation">,</span> err <span class="token operator">=</span> helmrepoindex<span class="token punctuation">.</span><span class="token function">ByteArrayToSavedIndex</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token function">byte</span><span class="token punctuation">(</span>instance<span class="token punctuation">.</span>Status<span class="token punctuation">.</span>Data<span class="token punctuation">)</span><span class="token punctuation">)</span>
           <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
               klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;json unmarshal failed, repo: %s,  error: %s&quot;</span><span class="token punctuation">,</span> instance<span class="token punctuation">.</span><span class="token function">GetTrueName</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
               <span class="token keyword">return</span> err
           <span class="token punctuation">}</span>
       <span class="token punctuation">}</span>

       <span class="token comment">// 2. merge new index with old index which is stored in crd</span>
       savedIndex <span class="token operator">:=</span> helmrepoindex<span class="token punctuation">.</span><span class="token function">MergeRepoIndex</span><span class="token punctuation">(</span>index<span class="token punctuation">,</span> existsSavedIndex<span class="token punctuation">)</span>

       <span class="token comment">// 3. save index in crd</span>
       data<span class="token punctuation">,</span> err <span class="token operator">:=</span> savedIndex<span class="token punctuation">.</span><span class="token function">Bytes</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
       <span class="token keyword">if</span> err <span class="token operator">!=</span> <span class="token boolean">nil</span> <span class="token punctuation">{</span>
           klog<span class="token punctuation">.</span><span class="token function">Errorf</span><span class="token punctuation">(</span><span class="token string">&quot;json marshal failed, error: %s&quot;</span><span class="token punctuation">,</span> err<span class="token punctuation">)</span>
           <span class="token keyword">return</span> err
       <span class="token punctuation">}</span>

       instance<span class="token punctuation">.</span>Status<span class="token punctuation">.</span>Data <span class="token operator">=</span> <span class="token function">string</span><span class="token punctuation">(</span>data<span class="token punctuation">)</span>
       <span class="token keyword">return</span> <span class="token boolean">nil</span>
   <span class="token punctuation">}</span>
</code></pre>
<h2 id="question"><a name="question" class="anchor-navigation-ex-anchor" href="#question"><i class="fa fa-link" aria-hidden="true"></i></a>Question:</h2>
<p><strong>Q1</strong>&#xFF1A;helm &#x4ED3;&#x5E93;&#x53D1;&#x5305;&#x65F6;&#x5982;&#x4F55;&#x8FDB;&#x884C;helm release &#x7248;&#x672C;&#x63A7;&#x5236;</p>
<p>A&#xFF1A;&#x4FEE;&#x6539;Charts.yaml &#x4E2D;&#x7684;&#x5B57;&#x6BB5; version&#xFF0C;&#x7136;&#x540E;helm package&#xFF0C; &#x7B49;&#x4E8E;&#x65B0;&#x589E;&#x4E00;&#x4E2A;tgz&#x5305;&#xFF0C;&#x8001;&#x7248;&#x672C;&#x7684;&#x4E0D;&#x8981;&#x5220;&#x9664;&#xFF0C;&#x8FD9;&#x65F6;&#x5019;&#x6267;&#x884C;index &#x7684;&#x65F6;&#x5019;&#x4F1A;&#x5427;&#x6240;&#x6709;&#x7684;tgz&#x5305;&#x5305;&#x542B;&#x5728;&#x5185;&#x3002;</p>
<pre class="language-"><code class="lang-bash">  $ helm repo index stable --url<span class="token operator">=</span>xxx.xx.xx.xxx:8081/
  $ <span class="token function">cat</span> index.yaml
  <span class="token punctuation">..</span><span class="token punctuation">..</span>
  redis:
  - apiVersion: v1
    appVersion: <span class="token string">&quot;1.0&quot;</span>
    created: <span class="token string">&quot;2021-06-22T16:34:58.286583012+08:00&quot;</span>
    description: A Helm chart <span class="token keyword">for</span> Kubernetes
    digest: fd7c0d962155330527c0a512a74bea33302fca940b810c43ee5f461b1013dbf5
    name: redis
    urls:
    - xxx.xx.xx.xxx:8081/redis-0.1.1.tgz
    version: <span class="token number">0.1</span>.1
  - apiVersion: v1
    appVersion: <span class="token string">&quot;1.0&quot;</span>
    created: <span class="token string">&quot;2021-06-22T16:34:58.286109049+08:00&quot;</span>
    description: A Helm chart <span class="token keyword">for</span> Kubernetes
    digest: 1a23bd6d5e45f9d323500bbe170011fb23bfccf2c1bd25814827eb8dc643d7f0
    name: redis
    urls:
    - xxx.xx.xx.xxx:8081/redis-0.1.0.tgz
    version: <span class="token number">0.1</span>.0
</code></pre>
<p><strong>Q2</strong>&#xFF1A;kubersphere&#x7248;&#x672C;&#x540C;&#x6B65;&#x529F;&#x80FD;&#x6709;&#x7F3A;&#x5931;&#xFF1F;&#x7528;&#x6237;&#x6DFB;&#x52A0;&#x5B8C;helm &#x4ED3;&#x5E93;&#x540E;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x65B0;&#x7684;&#x5E94;&#x7528;&#x53D1;&#x5E03;&#xFF0C;&#x67E5;&#x8BE2;&#x4E0D;&#x5230;</p>
<p>A&#xFF1A;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;&#x4F7F;&#x7528;3&#x79CD;&#x540C;&#x6B65;&#x7B56;&#x7565;</p>
<ul>
<li>&#x5B9A;&#x65F6;&#x540C;&#x6B65;helm&#x4ED3;&#x5E93;&#xFF08;helmRepo &#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x5B9A;&#x65F6;&#x534F;&#x8C03;&#x7684;&#x4E8B;&#x4EF6;&#xFF09;</li>
<li>&#x4F01;&#x4E1A;&#x4ED3;&#x5E93;&#xFF0C;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;hook&#xFF0C;&#x53D1;&#x5E03;&#x65B0;&#x7248;&#x672C;&#x7684;&#x65F6;&#x5019;&#x4E3B;&#x52A8;&#x89E6;&#x53D1;&#x66F4;&#x65B0;</li>
<li>&#x7528;&#x6237;&#x4E3B;&#x52A8;&#x66F4;&#x65B0;charts&#xFF1B;</li>
</ul>
<p><strong>Q3</strong>&#xFF1A;index.yaml &#x7F13;&#x5B58;&#x4F4D;&#x7F6E;</p>
<p>A&#xFF1A;&#x67D0;&#x4E9B;&#x4ED3;&#x5E93;&#x7684;index.yaml &#x6BD4;&#x8F83;&#x5927;&#xFF0C;&#x5982;&#x679C;1000&#x4E2A;&#x7528;&#x6237;&#xFF0C;1000&#x4E2A;charts &#x4F1A;&#x592A;&#x5403;&#x5185;&#x5B58;&#x3002; </p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; caixisheng 2017 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2021-06-23 15:51:23
</span></footer> <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css"> <script>     window.klipse_settings = {         selector: ".language-klipse, .lang-eval-clojure",         selector_eval_js: ".lang-eval-js",         selector_eval_python_client: ".lang-eval-python",         selector_eval_php: ".lang-eval-php",         selector_eval_scheme: ".lang-eval-scheme",         selector_eval_ruby: ".lang-eval-ruby",         selector_reagent: ".lang-reagent",        selector_google_charts: ".lang-google-chart",        selector_es2017: ".lang-eval-es2017",        selector_jsx: ".lang-eval-jsx",        selector_transpile_jsx: ".lang-transpile-jsx",        selector_render_jsx: ".lang-render-jsx",        selector_react: ".lang-react",        selector_eval_markdown: ".lang-render-markdown",        selector_eval_lambdaway: ".lang-render-lambdaway",        selector_eval_cpp: ".lang-eval-cpp",        selector_eval_html: ".lang-render-html",        selector_sql: ".lang-eval-sql",        selector_brainfuck: "lang-eval-brainfuck",        selector_js: ".lang-transpile-cljs"    }; </script> <script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: Kubesphere">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="readme.html" class="navigation navigation-next " aria-label="Next page: Readme">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Helm","level":"1.9.24.1","depth":3,"next":{"title":"Readme","level":"1.9.24.2","depth":3,"path":"blog/kubernetes/kubesphere/readme.md","ref":"blog/kubernetes/kubesphere/readme.md","articles":[]},"previous":{"title":"Kubesphere","level":"1.9.24","depth":2,"path":"blog/kubernetes/kubesphere/README.md","ref":"blog/kubernetes/kubesphere/README.md","articles":[{"title":"Helm","level":"1.9.24.1","depth":3,"path":"blog/kubernetes/kubesphere/helm.md","ref":"blog/kubernetes/kubesphere/helm.md","articles":[]},{"title":"Readme","level":"1.9.24.2","depth":3,"path":"blog/kubernetes/kubesphere/readme.md","ref":"blog/kubernetes/kubesphere/readme.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["summary","expandable-chapters","toggle-chapters","theme-comscore","-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","github@^2.0.0","github-buttons@2.1.0","edit-link@^2.0.2","disqus@^0.1.0","prism@^2.1.0","prism-themes@^0.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","emphasize@^1.1.0","katex@^1.1.3","splitter@^0.0.8","mermaid-gb3@2.1.0","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","donate@^1.0.2","local-video@^1.0.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2","3-ba@^0.9.0","terminal@^0.3.2","alerts@^0.2.0","include-csv@^0.1.0","puml@^1.0.1","musicxml@^1.0.2","klipse@^1.2.0","versions-select@^0.1.1","-sharing","sharing-plus@^0.0.2","graph@^0.1.0","chart@^0.2.0"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © caixisheng 2017","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"include-csv":{},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/xishengcai/xisheng.blog"},"puml":{},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"summary":{},"splitter":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"versions-select":{"type":"branches"},"graph":{},"donate":{"alipay":"https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/zhifubao-pay.jpg","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"https://cai-hello-1253732611.cos.ap-shanghai.myqcloud.com/share/weixin-pay.jpg","wechatText":"微信打赏"},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"musicxml":{},"sectionx":{"tag":"b"},"mermaid-gb3":{},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"theme-comscore":{},"prism-themes":{},"alerts":{},"github-buttons":{"repo":"xishengcai/xisheng.blog","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"ff100361cdce95dd4c8fb96b4009f7bc"},"expandable-chapters-small":{},"local-video":{},"klipse":{"myConfigKey":"it's the default value"},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":false,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon","qq","qzone"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":true,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":true},"terminal":{"copyButtons":true,"fade":false,"style":"flat"},"edit-link":{"label":"Edit This Page","base":"https://github.com/xishengcai/xisheng.blog/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"chart":{"type":"c3"},"toggle-chapters":{},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"xishengcai","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"这是程序员吗","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"https://xisheng.vip"}},"gitbook":"3.2.3","description":"这是程序员吗"},"file":{"path":"blog/kubernetes/kubesphere/helm.md","mtime":"2021-06-23T07:51:23.943Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-06-23T07:51:54.455Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-terminal/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-alerts/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/osmd.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/musicxml.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-musicxml/promise.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-versions-select/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

